[Gambas-user] MD5 Hash in Crypt Class

Claus Dietrich claus.dietrich at freenet.de
Sat Jan 30 22:24:23 CET 2021


Hi

I tried to implement an API login into my Fritzbox router which requires
the generation of a MD5 hash. So I tried to use the gambas crypt class
and it turned out that

a) the class is forcing to use a prefix, although this is not always
needed, not specified in RFC 1321 and also not forced by the md5sum tool,

b) the MD5 hash is different to an MD5 hash generated with md5sum,

c) the crypt-MD5 hash has a prefix like $1$ and may contain special
punctuation characters like a slash which don‘t appear in normal MD5 hashs,

d) the crypt MD5 hash consists of 34 characters while a normal MD5
consists of 32 characters,

e) the crypt MD5 hash consists of capital letters while a normal MD5
hash typically contains small letters,

With this I got the impression that a MD5 hash produced by the Gambas
crypt class might not be compliant with RFC 1321.

Is there anything I have done wrong? Any advise?

Regards, Claus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210130/12176011/attachment.htm>


More information about the User mailing list