- HERENCIA-SIMCO.md actualizado con directivas v3.7 y v3.8 - Actualizaciones de configuracion Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
7 lines
227 B
JavaScript
7 lines
227 B
JavaScript
import { toUint8Array } from "@smithy/util-utf8";
|
|
export const stringHasher = (checksumAlgorithmFn, body) => {
|
|
const hash = new checksumAlgorithmFn();
|
|
hash.update(toUint8Array(body || ""));
|
|
return hash.digest();
|
|
};
|