A secure, extensible hashing library.
npm install @gottheflag/oxidepnpm add @gottheflag/oxideyarn add @gottheflag/oxideimport { SHA1 } from "@gottheflag/oxide/sha1";
const sha1 = new SHA1();
sha1.update("Hello, world!");
console.log(sha1.digest("hex"));Digest bytes can also be returned:
const bytes = sha1.digest();CommonJS is also supported:
const { SHA1 } = require("@gottheflag/oxide/sha1");
const sha1 = new SHA1();
sha1.update("Hello, world!");
console.log(sha1.digest("hex"));