hashing string problem
#6

Yes and after include SHA256.inc ( https://github.com/AbyssMorgan/SA-MP...amp/SHA256.inc ) it seems to work fine:

Код:
new hash[128 + 1];
format(hash, sizeof hash, "%s%s", SHA256("password"), SHA256("qwerty"));
printf("Returned hash: %s", SHA256(hash));
gives: e73627dbaacba2a5b491b204e1f29c7f31a5aa3650be2b69dd f49d33a621f921

Lowercase but matches with hash at web. So default SHA256_PassHash() isn't working properly? Anyway, thank you for ideas! Solved @down: Thank you again!
Reply


Messages In This Thread
hashing string problem - by 7days7 - 10.07.2017, 22:04
Re: hashing string problem - by Kaperstone - 10.07.2017, 22:19
Re: hashing string problem - by Meller - 10.07.2017, 22:20
Re: hashing string problem - by 7days7 - 10.07.2017, 23:05
Re: hashing string problem - by Kaperstone - 10.07.2017, 23:17
Re: hashing string problem - by 7days7 - 10.07.2017, 23:29
Re: hashing string problem - by Kaperstone - 10.07.2017, 23:31
Re: hashing string problem - by Vince - 11.07.2017, 08:39

Forum Jump:


Users browsing this thread: 1 Guest(s)