https://github.com/quexten/ssh-keygen-wasm
https://github.com/quexten/ssh-keygen-wasm
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/quexten/ssh-keygen-wasm
- Owner: quexten
- Created: 2023-01-21T20:45:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-22T12:18:38.000Z (over 2 years ago)
- Last Synced: 2025-04-01T06:11:46.044Z (2 months ago)
- Language: JavaScript
- Size: 1.33 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go-based WASM module to read, decrypt, generate SSH keys in the browser
This module is a small wrapper around Go's ssh library.Compile the wasm module using `GOOS=js GOARCH=wasm go build -o ssh-keygen.wasm main.go functions.go`
Example usage in typescrypt:
```ts
import { generatePrivateKey } from "ssh-keygen-wasm";// in an async func:
var privateKey = generatePrivateKey("ed25519") // will be returned encoded in PKCS#8, ready for openssh usage
console.log(privateKey)```