@noble/ciphers

v1.0.0
Audited & minimal JS implementation of Salsa20, ChaCha and AES
salsa20 chacha aes cryptography crypto noble cipher ciphers xsalsa20 and 10 more...

bench

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

bench:all

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

bench:install

npm pack && mv *.tgz benchmark/noble-ciphers.tgz && cd benchmark && npm install && cd ..

build

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

build:release

cd build && npm i && npm run build:release

build:clean

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

lint

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

format

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

test

node test/index.js
npm i @noble/ciphers

Metadata

  • MIT
  • ^14.21.3 || >=16
  • Paul Miller
  • released 9/12/2024

Downloads

Maintainers