Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
imcotton committed Mar 10, 2024
1 parent 394ea62 commit c1702f7
Showing 1 changed file with 37 additions and 7 deletions.
44 changes: 37 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,54 @@
reproducible **SSH Keygen** by `Ed25519`
reproducible **SSH Keygen** by `PBKDF2` + `Ed25519`





## CLI
## Methodology

```
|--PBKDF2--------|
| |
| salt <- 'the default salt'
| passphrase <- 'the default passphrase'
| |
| hash: sha512 |
| round: 400_000 |
|----------------|
|--Ed25519--------------|
| |
| npm:ed25519-keygen |
| npm:@scure/base |
| npm:@noble/hashes |
| npm:@noble/curves |
|-----------------------|
```





## Deno CLI

### print fingerprint

deno run jsr:@key/gen-ssh-ed25519 <salt> <passphrase>
deno run jsr:@key/gen-ssh-ed25519 \
<salt> <passphrase>

### create public key

deno run jsr:@key/gen-ssh-ed25519/pub <salt> <passphrase>
deno run jsr:@key/gen-ssh-ed25519/pub \
<salt> <passphrase>

### create private key

deno run jsr:@key/gen-ssh-ed25519/private <salt> <passphrase>
deno run jsr:@key/gen-ssh-ed25519/private \
<salt> <passphrase>

### create `uuid` via `crypto.randomUUID`
### create **UUID** via `crypto.randomUUID`

deno run jsr:@key/gen-ssh-ed25519/uuid
deno run jsr:@key/gen-ssh-ed25519/uuid

0 comments on commit c1702f7

Please sign in to comment.