Thanks to visit codestin.com
Credit goes to github.com

Skip to content
forked from brix/crypto-js

JavaScript library of crypto standards.

License

hungtcs/escrypto

 
 

Repository files navigation

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.

About

JavaScript library of crypto standards.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 98.7%
  • HTML 1.3%