hashing string problem
#8

Quote:
Originally Posted by Kaperstone
Посмотреть сообщение
I have no idea why the first two give identical hashes but once they're joined it gives a different.
Because the exact same input string is being hashed. The only difference is that in the first case the hash function implicitly does the concatenation and in the second case the concatenation is performed explicitely. If you use the SHA256_PassHash function with password "password" and salt "qwerty" then what actually gets fed into the algorithm is simply "passwordqwerty". The function does not hash each part separately.
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)