[BREAKGLASS] Append-only mirror of github.com/bluewallet/noble-crypto
Go to file
2025-07-06 22:16:38 +01:00
.github/workflows Nobelify (#1) 2025-07-06 18:37:57 +01:00
test carved out curves from create-ecdh 2025-07-06 22:16:38 +01:00
.eslintrc Nobelify (#1) 2025-07-06 18:37:57 +01:00
.gitignore [Tests] add nyc 2024-10-22 09:28:14 -07:00
.npmrc [Tests] ignore the "low" warning from elliptic 2024-10-22 09:44:02 -07:00
.nycrc [Tests] add nyc 2024-10-22 09:28:14 -07:00
.travis.yml [Tests] mostly switch to Github Actions 2023-11-27 09:04:47 -08:00
index.js removed createSign/createVerify 2025-07-06 22:04:10 +01:00
LICENSE Add MIT license 2013-09-20 12:36:42 -06:00
noble-cipher-wrapper.js Nobelify (#1) 2025-07-06 18:37:57 +01:00
noble-ecdh-wrapper.js carved out curves from create-ecdh 2025-07-06 22:16:38 +01:00
noble-hash-wrapper.js Nobelify (#1) 2025-07-06 18:37:57 +01:00
noble-hmac-wrapper.js Nobelify (#1) 2025-07-06 18:37:57 +01:00
noble-pbkdf2-wrapper.js Nobelify (#1) 2025-07-06 18:37:57 +01:00
package.json carved out curves from create-ecdh 2025-07-06 22:16:38 +01:00
README.md carved out curves from create-ecdh 2025-07-06 22:16:38 +01:00

Incompatibilities

  • randomBytes is removed and will throw an exception. Bring your own CSPRNG for your runtime
  • randomfill
  • createSign() & createVerify() are carved out (could not get noble to work with it)
  • for createECDH, curves secp224r1 & prime192v1 are carved out (not supported in noble)

crypto-browserify Version Badge

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

github actions coverage License Downloads Sauce Test Status

npm badge

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