Backend half
This commit is contained in:
Generated
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
import { toUint8Array } from "@smithy/util-utf8";
|
||||
export const stringHasher = (checksumAlgorithmFn, body) => {
|
||||
const hash = new checksumAlgorithmFn();
|
||||
hash.update(toUint8Array(body || ""));
|
||||
return hash.digest();
|
||||
};
|
||||
Reference in New Issue
Block a user