Cryptographic primitives as a web library (UMD) - used by SNJS.
yarn add @standardnotes/sncrypto-web
- Argon2id (Libsodium.js)
- XChaCha20+Poly1305 (Libsodium.js)
- PBDKF2 (WebCrypto)
- AES-CBC (WebCrypto)
- HMAC SHA-256
- SHA256
Tests are run in the browser due to WebCrypto and WebAssembly dependency.
yarn test