monkybrain / klarna-checkout

Klarna Checkout library for nodejs
ISC License
16 stars 6 forks source link

Made the hash data encoding explicit. #6

Closed geon closed 8 years ago

geon commented 8 years ago

The hashing should be done in utf-8 mode, since the string is utf-8. Before Node v6, the default was binary.

https://nodejs.org/api/crypto.html#crypto_hash_update_data_input_encoding https://github.com/nodejs/node/issues/6813