Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hazae41/x25519
X25519 adapter for WebAssembly and JS implementations
https://github.com/hazae41/x25519
adapter browser cryptography curve25519 javascript typescript webassembly x25519
Last synced: about 1 month ago
JSON representation
X25519 adapter for WebAssembly and JS implementations
- Host: GitHub
- URL: https://github.com/hazae41/x25519
- Owner: hazae41
- Created: 2023-03-26T16:05:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-06T15:27:11.000Z (2 months ago)
- Last Synced: 2024-10-07T21:35:02.583Z (about 1 month ago)
- Topics: adapter, browser, cryptography, curve25519, javascript, typescript, webassembly, x25519
- Language: TypeScript
- Homepage:
- Size: 226 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# X25519
X25519 adapter for WebAssembly and JS implementations
```bash
npm i @hazae41/x25519
```[**Node Package 📦**](https://www.npmjs.com/package/@hazae41/x25519)
## Features
### Current features
- 100% TypeScript and ESM
- No external dependencies## Usage
### Native (WebCrypto)
https://github.com/tQsW/webcrypto-curve25519/blob/master/explainer.md
```typescript
import { X25519 } from "@hazae41/x25519"X25519.set(await X25519.fromNative())
```### WebAssembly
```bash
npm i @hazae41/x25519.wasm
``````typescript
import { X25519 } from "@hazae41/x25519"
import { X25519Wasm } from "@hazae41/x25519.wasm"await X25519Wasm.initBundled()
X25519.set(await X25519.fromNativeOrWasm(X25519Wasm))
```### Noble (JavaScript)
```bash
npm i @noble/curves
``````typescript
import { X25519 } from "@hazae41/x25519"
import * as Ed25519Noble from "@noble/curves/ed25519"X25519.set(await X25519.fromNativeOrNoble(Ed25519Noble))
```