All Projects → mikesmitty → edkey

mikesmitty / edkey

Licence: MIT License
edkey allows you to write ED25519 private keys in the OpenSSH private key format

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to edkey

Kryptor
A simple, modern, and secure encryption and signing tool that aims to be a better version of age and Minisign.
Stars: ✭ 267 (+493.33%)
Mutual labels:  ed25519
wasm
fast wasm modules
Stars: ✭ 37 (-17.78%)
Mutual labels:  ed25519
shim
The Userify Shim (cloud agent)
Stars: ✭ 57 (+26.67%)
Mutual labels:  openssh
libeddsa
cryptographic library for ed25519 and curve25519
Stars: ✭ 20 (-55.56%)
Mutual labels:  ed25519
ed25519-hd-key
🔐 Key Derivation for ed25519
Stars: ✭ 54 (+20%)
Mutual labels:  ed25519
girltalk
A tool for helping stand up headless C2 for droppables.
Stars: ✭ 16 (-64.44%)
Mutual labels:  openssh
docker-alpine-sshd
A lightweight OpenSSH Docker Image built atop Alpine Linux.
Stars: ✭ 108 (+140%)
Mutual labels:  openssh
opengnb
GNB is open source de-centralized VPN to achieve layer3 network via p2p with the ultimate capability of NAT Traversal.GNB是一个开源的去中心化的具有极致内网穿透能力的通过P2P进行三层网络交换的VPN。
Stars: ✭ 440 (+877.78%)
Mutual labels:  ed25519
ancistrus
Netgear's D7000 Nighthawk Router Experience Distributed Project
Stars: ✭ 61 (+35.56%)
Mutual labels:  openssh
mbedtls-esp8266
Updated and Upgraded mbedTLS library for the ESP8266 (probably ESP32 too)
Stars: ✭ 13 (-71.11%)
Mutual labels:  ed25519
rawr-x3dh
TypeScript Implementation of X3DH
Stars: ✭ 51 (+13.33%)
Mutual labels:  ed25519
vegawallet
Command-line tool to manage your Vega Protocol wallet, a protocol for creating and trading derivatives on a fully decentralised network.
Stars: ✭ 64 (+42.22%)
Mutual labels:  ed25519
zig-eddsa-key-blinding
A Zig implementation of EdDSA signatures with blind keys.
Stars: ✭ 15 (-66.67%)
Mutual labels:  ed25519
ed25519
Dart port of ed25519 from Go Cryptography ed25519
Stars: ✭ 18 (-60%)
Mutual labels:  ed25519
multi-party-eddsa
Rust implementation of multi party Ed25519 signature scheme.
Stars: ✭ 86 (+91.11%)
Mutual labels:  ed25519
docker-sftp
SFTP Server for Docker
Stars: ✭ 118 (+162.22%)
Mutual labels:  openssh
noble-ed25519
Fastest JS implementation of ed25519, x25519 & ristretto255. Independently audited, high-security, 0-dependency EDDSA signatures and ECDH key agreement
Stars: ✭ 220 (+388.89%)
Mutual labels:  ed25519
signify
🔏 Cryptographic signing, ported from BSD for Linux, that uses instructions of modern CPUs
Stars: ✭ 22 (-51.11%)
Mutual labels:  ed25519
jsch
fork of the popular jsch library
Stars: ✭ 127 (+182.22%)
Mutual labels:  openssh
rsign2
A command-line tool to sign files and verify signatures in pure Rust.
Stars: ✭ 102 (+126.67%)
Mutual labels:  ed25519

edkey

edkey allows you to marshal/write ED25519 private keys in the OpenSSH private key format

Example

package main

import (
	"crypto/rand"
	"encoding/pem"
	"io/ioutil"
	"github.com/mikesmitty/edkey"
	"golang.org/x/crypto/ed25519"
	"golang.org/x/crypto/ssh"
)

func main() {
	// Generate a new private/public keypair for OpenSSH
	pubKey, privKey, _ := ed25519.GenerateKey(rand.Reader)
	publicKey, _ := ssh.NewPublicKey(pubKey)

	pemKey := &pem.Block{
		Type:  "OPENSSH PRIVATE KEY",
		Bytes: edkey.MarshalED25519PrivateKey(privKey),
	}
	privateKey := pem.EncodeToMemory(pemKey)
	authorizedKey := ssh.MarshalAuthorizedKey(publicKey)

	_ = ioutil.WriteFile("id_ed25519", privateKey, 0600)
	_ = ioutil.WriteFile("id_ed25519.pub", authorizedKey, 0644)
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].