Newbie help - password hash

cc10 tsubidio at gmail.com
Mon Sep 14 15:11:17 CEST 2009


>This is dangerous, and wrong. 

>scanf("%16s", userPass); is bit more correct.

Thank you, will fix it.

>gcry_md_hash_buffer(GCRY_MD_MD5, userPassHash, userPass, strlen(userPass));

Tried it both ways (1, and GCRY_MD_MD5), still won't give me the right hash.
It is weird as it seems the beginning is right, and then it's a bunch of
f's.

-- 
View this message in context: http://www.nabble.com/Newbie-help---password-hash-tp25425990p25435527.html
Sent from the GnuPG - Libgcrypt - Dev mailing list archive at Nabble.com.




More information about the Gcrypt-devel mailing list