Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oxide

A secure, extensible hashing library.

Installation

npm install @gottheflag/oxide
pnpm add @gottheflag/oxide
yarn add @gottheflag/oxide

Usage

import { 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"));

License

Apache-2.0

About

A secure, extensible hashing library.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages