/crypto

A very basic, runtime-agnostic crypto library

Primary LanguageTypeScriptMIT LicenseMIT

@oslojs/crypto documentation

Documentation: https://crypto.oslojs.dev

A basic JavaScript crypto library by Oslo. Includes APIs for SHA-1, SHA-2, SHA-3, HMAC, ECDSA, RSA, and cryptographically secure random generator.

  • Runtime-agnostic
  • No third-party dependencies
  • Fully typed

Algorithms such as SHA and ECDSA are tested against NIST test vectors.

Installation

npm i @oslojs/crypto