golang-github-mikesmitty-edkey 0.0~git20170222.3356ea4-2 source package in Ubuntu
Changelog
golang-github-mikesmitty-edkey (0.0~git20170222.3356ea4-2) unstable; urgency=medium * Source-only upload for migration to testing -- Anthony Fok <email address hidden> Wed, 23 Mar 2022 02:52:14 -0600
Upload details
- Uploaded by:
- Debian Go Packaging Team
- Uploaded to:
- Sid
- Original maintainer:
- Debian Go Packaging Team
- Architectures:
- all
- Section:
- misc
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section | |
---|---|---|---|---|
Oracular | release | universe | misc | |
Noble | release | universe | misc | |
Mantic | release | universe | misc | |
Lunar | release | universe | misc |
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
golang-github-mikesmitty-edkey_0.0~git20170222.3356ea4-2.dsc | 2.4 KiB | d7c3fbb64dd2068d93a89185e08bc94a48058641b694e2738957023ef7493cd9 |
golang-github-mikesmitty-edkey_0.0~git20170222.3356ea4.orig.tar.xz | 2.2 KiB | 590b22b909d8e021c72d40300db1de75928a884170f5d234ffe59cdc7a5a2ae9 |
golang-github-mikesmitty-edkey_0.0~git20170222.3356ea4-2.debian.tar.xz | 3.0 KiB | 3d90fbb36f86792a05ab0d168d85cff6f0584dae270222ffcda1b007c17e5e08 |
Available diffs
No changes file available.
Binary packages built by this source
- golang-github-mikesmitty-edkey-dev: generates ED25519 private keys in the OpenSSH private key format (Go library)
Go package 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.MarshalAuth orizedKey( publicKey)
.
_ = ioutil.WriteFile( "id_ed25519" , privateKey, 0600)
_ = ioutil.WriteFile( "id_ed25519. pub", authorizedKey, 0644)
}