Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 1.58 KB

README.md

File metadata and controls

50 lines (41 loc) · 1.58 KB

Hash functions for Cloudflare Workers

NPM

GitHub CI

NPM Publish

What is this?

This is a simple hash function library for Cloudflare Workers. It supports the following hash functions:

How to install?

npm install cf-workers-hash

How to use?

Check the example directory.

import { sha1, sha256, sha384, sha512, base64, base64Decode, md5, xxhash64, xxhash32, bcrypt, bcryptCompare, whirlpool, whirlpoolDecode, sha3_512, sha3_224, sha3_256, sha3_384, keccak512, keccak384, keccak256, keccak224, md6, crc32, crc32c } from 'cf-workers-hash';
await sha1('test');

How to test in local?

npm test