4 ms·
I maintain a JavaScript hashing library and the language's handling of large integers is terrible. SHA-256/SHA-384/SHA-512 as well as SHA-3 all use 64-bit prim
by Caligatio 6y ago
I maintain a JavaScript hashing library and the language's handling of large integers is terrible. SHA-256/SHA-384/SHA-512 as well as SHA-3 all use 64-bit primitives so I need to do some hacks to emulate a 64-bit integer. Bit shifting large numbers gets even more nebulous...
- MaxBarraclough 6y agoDo you know if moving to BigInt would cause performance issues?