Skip to content

imcotton/at-key-gen-ssh-ed25519

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsr codecov

reproducible SSH Keygen by PBKDF2 + Ed25519

Methodology

|--PBKDF2--------|
|                |
|           salt <- (at least 5 characters long)
|     passphrase <- "the default passphrase"
|                |
|  hash:  sha512 |
| round: 400_000 |
|----------------|
▼
▼ -- 32 bytes entropy
▼
|--Ed25519---------------|
|                        |
| npm:micro-key-producer |
|     npm:@scure/base    |
|     npm:@noble/hashes  |
|     npm:@noble/curves  |
|------------------------|

Credit to: https://github.com/paulmillr/micro-key-producer

Deno CLI

print fingerprint

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

create public key

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

create private key

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

create UUID via crypto.randomUUID

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

or

node -p 'crypto.randomUUID()'

About

reproducible SSH Keygen by PBKDF2 + Ed25519

Topics

Resources

License

Stars

Watchers

Forks