[Gambas-user] my wrong use of hash.md5

roberto.premoli at tiscali.it roberto.premoli at tiscali.it
Fri Dec 8 23:31:59 CET 2023


  

here the code:

Public Sub Button3_Click()
 Dim var As String
 var
= "a"
 Print Hash.md5(var)
End

i run the code, push the button3 and get
printed in debug console the follow
value:

0CC175B9C0F1B6A831C399E269772661

To check it, I go to command
line and type:

echo "a" | md5sum

and i
get:

60b725f10c9c85c70d97880dfe8191b3 -

The 2 value are not the same.
so, what I am doing wrong?

 Roberto  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231208/27096f57/attachment.htm>


More information about the User mailing list