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

Jussi Lahtinen jussi.lahtinen at gmail.com
Sat Dec 9 03:12:29 CET 2023


Wrong command. Use: echo -n "a" | md5sum

Jussi


On Sat, Dec 9, 2023 at 12:46 AM <roberto.premoli at tiscali.it> wrote:

>
> 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
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231209/fbbe6e5a/attachment-0001.htm>


More information about the User mailing list