bs-node icon indicating copy to clipboard operation
bs-node copied to clipboard

Fix hmac bindings

Open villesau opened this issue 6 years ago • 0 comments

Previously it was not possible to do something like this:

Crypto.Hmac.(create(`SHA256, hmacKey)->appendString(str)->toHex)

which is totally valid.

Hmac node docs: https://nodejs.org/api/crypto.html#crypto_hmac_update_data_inputencoding Documentation for allowed encodings (implemented only hex this time): https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings

villesau avatar Dec 03 '19 14:12 villesau