We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c76ac7 commit 61323f5Copy full SHA for 61323f5
lib/sha256digest-reactnative.js
@@ -17,7 +17,7 @@ module.exports = {
17
async sha256digest({string}) {
18
const bytes = new TextEncoder().encode(string);
19
return new Uint8Array(
20
- await crypto.subtle.digest('SHA-256', bytes)
+ await crypto.subtle.digest({name: 'SHA-256'}, bytes)
21
);
22
}
23
};
0 commit comments