FreeBASIC-Extended-Library / fb-ext-lib

A set of general purpose and game oriented libraries for FreeBASIC
Other
14 stars 11 forks source link

sha256 reports incorrect checksums #6

Closed mudhairless closed 8 months ago

mudhairless commented 10 years ago

sha2.checksum("]SO6666666666666666666666666666666666666666666666666666666666666The quick brown fox jumps over the lazy dog") returns a random value

Expected Output (using python's hashlib): 7ad04e5aa19eee72182c9a75ac71ba13833c53fc4dc8c815ceb7946d562e3631

The testcases for sha256 all pass so certain strings are still returning correct values, an empty string is known to be correct. The testcases will need to be updated once this issue is resolved.