wisepythagoras / pyrin

A [fairly slow and] secure 512-bit one way cryptographic hash function.
GNU Lesser General Public License v3.0
1 stars 0 forks source link

All 1-char-length strings start with '00' #2

Closed ghost closed 7 years ago

ghost commented 7 years ago

image

ghost commented 7 years ago

The first character that would be generated from the PRNG was the exact same character as the input character, hence the XOR would return 00.

As per the official DJB2 implementation, I returned the initial hash to 5381 in C here and in JavaScript here.