We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed4f066 commit 43177baCopy full SHA for 43177ba
1 file changed
src/archive-apis/search-utilities.tsx
@@ -493,7 +493,8 @@ async function processInChunks<T>(
493
}
494
495
496
-async function ComputeSha256Hash(message) {
+// Implementation extractd from MDN https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest#basic_example
497
+async function computeSha256Hash(message) {
498
const msgUint8 = new TextEncoder().encode(message); // encode string to Uint8Array
499
const hashBuffer = await window.crypto.subtle.digest("SHA-256", msgUint8); // hash
500
const hashArray = Array.from(new Uint8Array(hashBuffer)); // buffer -> byte array
@@ -513,7 +514,7 @@ export {
513
514
maxAbs,
515
getConstellationName,
516
getSatellitesRespectingGsd,
- ComputeSha256Hash,
517
+ computeSha256Hash,
518
519
// Enums
520
Satellites,
0 commit comments