Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hazae41 committed Mar 26, 2023
1 parent ebe81dd commit da691f2
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# X25519
# Sha1

X25519 adapter for WebAssembly and JS implementations
SHA-1 adapter for WebAssembly and JS implementations

```bash
npm i @hazae41/x25519
npm i @hazae41/sha1
```

[**Node Package 📦**](https://www.npmjs.com/package/@hazae41/x25519)
[**Node Package 📦**](https://www.npmjs.com/package/@hazae41/sha1)

## Features

Expand All @@ -16,21 +16,21 @@ npm i @hazae41/x25519

## Usage

### Berith (WebAssembly)
### Morax (WebAssembly)

```typescript
import { X25519 } from "@hazae41/x25519"
import { Berith } from "@hazae41/berith"
import { Sha1 } from "@hazae41/sha1"
import { Morax } from "@hazae41/morax"

await Berith.initBundledOnce()
const x25519 = X25519.fromBerith(Berith)
await Morax.initBundledOnce()
const sha1 = Sha1.fromMorax(Morax)
```

### Noble (JavaScript)

```typescript
import { X25519 } from "@hazae41/x25519"
import * as noble_ed25519 from "@noble/curves/ed25519"
import { Sha1 } from "@hazae41/sha1"
import * as noble_sha1 from "@noble/hashes/sha1"

const x25519 = X25519.fromNoble(noble_ed25519.x25519)
const sha1 = Sha1.fromNoble(noble_sha1.sha1)
```

0 comments on commit da691f2

Please sign in to comment.