@noble/ciphers

v0.5.0
Auditable & minimal JS implementation of Salsa20, ChaCha and AES
salsa20 chacha aes cryptography crypto noble cipher ciphers xsalsa20 and 10 more...

lint

prettier --check 'src/**/*.{js,ts}' 'test/**/*.{js,ts,mjs}'

test

node test/index.js

bench

node benchmark/aead.js noble && node benchmark/ciphers.js noble

build

npm run build:clean; tsc && tsc -p tsconfig.esm.json

format

prettier --write 'src/**/*.{js,ts}' 'test/**/*.{js,ts,mjs}'

bench:all

node benchmark/{aead,ciphers,poly}.js

build:clean

rm *.{js,d.ts,js.map,d.ts.map} esm/*.{js,d.ts,js.map,d.ts.map} 2> /dev/null

bench:install

cd benchmark && npm install && cd ../../

build:release

cd build; npm i; npm run build
npm i @noble/[email protected]

Metadata

  • MIT
  • Whatever
  • Paul Miller
  • released 2/9/2024

Downloads

Maintainers