@popovmp/sha256
v1.0.1
Published
HMAC SHA-256 Base64 URL Safe encoding for NodeJS
Downloads
156
Readme
HMAC SHA-256 for NodeJS
Encodes a string to a SHA-256 Base64 URL safe string
import {encodeSha256} from "@popovmp/sha256";
const text = "Hello, World!";
const key = "42";
const encodedData = await encodeSha256(text, key);
console.log(encodedData); //=> HLP82ulAwIfz_gRho0jGemRzRJbl7muEwqMmaDaXggI