How to compute SHA1 hash with openpgp.js v5? #1515
Unanswered
IvanPizhenko
asked this question in
Q&A
Replies: 1 comment
-
Hey 👋 The recommended way is to use the native crypto API of the platform you're using, i.e. https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest in the browser or https://nodejs.org/api/crypto.html#class-hash on Node.js. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Previously, in v4, openpgp.js was exporting some hashing functions and following code was possible:
Now function
digest()
is not exported. What is recommended way to compute hash now?Beta Was this translation helpful? Give feedback.
All reactions