0.0.4 • Published 2 years ago

escrypto v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

ESCrypto

This is a typescript refactoring of crypto-js.

Installation

npm i escrypto

Example

import { SHA1 } from 'escrypto';

const sha1 = new SHA1();
console.log({sha1});
sha1.update('hello');
sha1.update(' world!');
const hash = sha1.finalize('\n');
const sum = hash.toString();
console.log(sum);

Warning

Only supported md5, sha1 and sha256 currently.

I'm not an algorithm expert, I just want to reduce the size of my app, so there is no comprehensive test.

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago