开发者社区> 镜像站> NPM> crypto-browserify
crypto-browserify
implementation of crypto for the browser
Last updated 3 years ago by cwmma .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install crypto-browserify 
SYNC missed versions from official npm registry.

crypto-browserify

A port of node's crypto module to the browser.

Build Status js-standard-style Sauce Test Status

The goal of this module is to reimplement node's crypto module, in pure javascript so that it can run in the browser.

Here is the subset that is currently implemented:

  • createHash (sha1, sha224, sha256, sha384, sha512, md5, rmd160)
  • createHmac (sha1, sha224, sha256, sha384, sha512, md5, rmd160)
  • pbkdf2
  • pbkdf2Sync
  • randomBytes
  • pseudoRandomBytes
  • createCipher (aes)
  • createDecipher (aes)
  • createDiffieHellman
  • createSign (rsa, ecdsa)
  • createVerify (rsa, ecdsa)
  • createECDH (secp256k1)
  • publicEncrypt/privateDecrypt (rsa)
  • privateEncrypt/publicDecrypt (rsa)

todo

these features from node's crypto are still unimplemented.

  • createCredentials

contributions

If you are interested in writing a feature, please implement as a new module, which will be incorporated into crypto-browserify as a dependency.

All deps must be compatible with node's crypto (generate example inputs and outputs with node, and save base64 strings inside JSON, so that tests can run in the browser. see sha.js

Crypto is extra serious so please do not hesitate to review the code, and post comments if you do.

License

MIT

Current Tags

  • 3.12.0                                ...           latest (3 years ago)

75 Versions

  • 3.12.0                                ...           3 years ago
  • 3.11.1                                ...           3 years ago
  • 3.11.0                                ...           5 years ago
  • 3.10.0                                ...           5 years ago
  • 3.9.14                                ...           6 years ago
  • 3.9.13                                ...           6 years ago
  • 3.9.12                                ...           6 years ago
  • 3.9.11                                ...           6 years ago
  • 3.9.10                                ...           6 years ago
  • 3.9.9                                ...           6 years ago
  • 3.9.8                                ...           6 years ago
  • 3.9.7                                ...           6 years ago
  • 3.9.6                                ...           6 years ago
  • 3.9.4                                ...           6 years ago
  • 3.9.3                                ...           6 years ago
  • 3.9.2                                ...           6 years ago
  • 3.9.1                                ...           6 years ago
  • 3.9.0                                ...           6 years ago
  • 3.8.3                                ...           6 years ago
  • 3.8.1                                ...           6 years ago
  • 3.8.0                                ...           6 years ago
  • 3.7.2                                ...           6 years ago
  • 3.7.1                                ...           6 years ago
  • 3.7.0                                ...           6 years ago
  • 3.6.0                                ...           6 years ago
  • 3.5.1                                ...           6 years ago
  • 3.5.0                                ...           6 years ago
  • 3.4.3                                ...           6 years ago
  • 3.4.1                                ...           6 years ago
  • 3.4.0                                ...           6 years ago
  • 3.3.0                                ...           6 years ago
  • 3.2.8                                ...           6 years ago
  • 3.2.7                                ...           6 years ago
  • 3.2.6                                ...           6 years ago
  • 3.2.5                                ...           6 years ago
  • 3.2.4                                ...           6 years ago
  • 3.2.2                                ...           6 years ago
  • 3.2.1                                ...           6 years ago
  • 3.2.0                                ...           6 years ago
  • 3.1.0                                ...           6 years ago
  • 3.0.2                                ...           6 years ago
  • 3.0.1                                ...           6 years ago
  • 3.0.0                                ...           6 years ago
  • 2.1.10                                ...           6 years ago
  • 2.1.8                                ...           7 years ago
  • 2.1.7                                ...           7 years ago
  • 2.1.6                                ...           7 years ago
  • 2.1.5                                ...           7 years ago
  • 2.1.4                                ...           7 years ago
  • 2.1.3                                ...           7 years ago
  • 2.1.2                                ...           7 years ago
  • 2.1.1                                ...           7 years ago
  • 2.1.0                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.0.9                                ...           7 years ago
  • 1.0.8                                ...           7 years ago
  • 1.0.7                                ...           7 years ago
  • 1.0.6                                ...           7 years ago
  • 1.0.5                                ...           7 years ago
  • 1.0.4                                ...           7 years ago
  • 1.0.3                                ...           7 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
  • 0.4.0                                ...           7 years ago
  • 0.3.0                                ...           7 years ago
  • 0.2.3                                ...           8 years ago
  • 0.2.2                                ...           8 years ago
  • 0.2.1                                ...           8 years ago
  • 0.2.0                                ...           8 years ago
  • 0.1.2                                ...           8 years ago
  • 0.1.1                                ...           8 years ago
  • 0.1.0                                ...           8 years ago
  • 0.0.1                                ...           9 years ago
  • 0.0.0                                ...           9 years ago
Maintainers (2)
Downloads
Today 412
This Week 174,814
This Month 138,965
Last Day 32,032
Last Week 202,121
Last Month 830,042
Dependencies (11)
Dev Dependencies (6)
Dependents (546)