@hazae41/x25519
TypeScript icon, indicating that this package has built-in type declarations

2.1.4 • Public • Published

X25519

X25519 adapter for WebAssembly and JS implementations

npm i @hazae41/x25519

Node Package 📦

Features

Current features

  • 100% TypeScript and ESM
  • No external dependencies

Usage

Safe (WebCrypto)

https://github.com/tQsW/webcrypto-curve25519/blob/master/explainer.md

import { X25519 } from "@hazae41/x25519"

X25519.set(await X25519.fromSafe())

Berith (WebAssembly)

npm i @hazae41/berith
import { X25519 } from "@hazae41/x25519"

X25519.set(await X25519.fromSafeOrBerith())

Noble (JavaScript)

npm i @noble/curves
import { X25519 } from "@hazae41/x25519"

X25519.set(await X25519.fromSafeOrNoble())

/@hazae41/x25519/

    Package Sidebar

    Install

    npm i @hazae41/x25519

    Weekly Downloads

    8

    Version

    2.1.4

    License

    MIT

    Unpacked Size

    129 kB

    Total Files

    41

    Last publish

    Collaborators

    • hazae41