Open thangpqgm opened 2 months ago
This library can accept binary such as bytes array or Uint8Array. See example. You can convert your data to bytes before input. This library can also output bytes and you can convert to other encodings. I use other libraries handle encoding outside this library. For example, I use hi-base64 to handle base64 encoding. You can do something like:
base64.encode(sha256.digest(''))
Hi, I see in your online demo tool, you can adjust Input/Output encoding and hmac Encoding, How can I do it with the hmac function in the code
Thank you!