https://github.com/imcotton/at-key-gen-ssh-ed25519
reproducible SSH Keygen by PBKDF2 + Ed25519
https://github.com/imcotton/at-key-gen-ssh-ed25519
deno jsr
Last synced: 2 months ago
JSON representation
reproducible SSH Keygen by PBKDF2 + Ed25519
- Host: GitHub
- URL: https://github.com/imcotton/at-key-gen-ssh-ed25519
- Owner: imcotton
- License: mit
- Created: 2024-03-09T18:58:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-10-08T09:48:32.000Z (9 months ago)
- Last Synced: 2025-10-08T11:36:16.633Z (9 months ago)
- Topics: deno, jsr
- Language: TypeScript
- Homepage: https://jsr.io/@key/gen-ssh-ed25519
- Size: 32.2 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://jsr.io/@key/gen-ssh-ed25519)
[](https://codecov.io/gh/imcotton/at-key-gen-ssh-ed25519)
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----------------------|
| |
| @paulmillr/micro-key-producer |
│ /micro-packed |
| @noble/hashes |
| @noble/curves |
| @scure/base |
|-------------------------------|
```
> Credit to: https://github.com/paulmillr/micro-key-producer
## Deno CLI
### print fingerprint
deno run jsr:@key/gen-ssh-ed25519 [passphrase]
### create public key
deno run jsr:@key/gen-ssh-ed25519/pub [passphrase]
### create private key
deno run jsr:@key/gen-ssh-ed25519/private [passphrase]
### create **UUID** via `crypto.randomUUID`
deno run jsr:@key/gen-ssh-ed25519/uuid
or
deno eval -p 'crypto.randomUUID()'
node -p 'crypto.randomUUID()'