How to Install and Uninstall golang-github-mikesmitty-edkey-dev Package on Kali Linux

Last updated: May 18,2024

1. Install "golang-github-mikesmitty-edkey-dev" package

This is a short guide on how to install golang-github-mikesmitty-edkey-dev on Kali Linux

$ sudo apt update $ sudo apt install golang-github-mikesmitty-edkey-dev

2. Uninstall "golang-github-mikesmitty-edkey-dev" package

Please follow the step by step instructions below to uninstall golang-github-mikesmitty-edkey-dev on Kali Linux:

$ sudo apt remove golang-github-mikesmitty-edkey-dev $ sudo apt autoclean && sudo apt autoremove

3. Information about the golang-github-mikesmitty-edkey-dev package on Kali Linux

Package: golang-github-mikesmitty-edkey-dev
Source: golang-github-mikesmitty-edkey
Version: 0.0~git20170222.3356ea4-2
Installed-Size: 18
Maintainer: Debian Go Packaging Team
Architecture: all
Depends: golang-golang-x-crypto-dev
Size: 4260
SHA256: c3fb9c49420c03c7f75a2d890e500d653d91c99c4ddbcb7f99aff88174a90aa0
SHA1: 40cda5aa4ceb4e36efda207f632e8356ce65e21e
MD5sum: 06e5fa8fedf9f43e814138e6a572f9fc
Description: 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.MarshalAuthorizedKey(publicKey)
.
_ = ioutil.WriteFile("id_ed25519", privateKey, 0600)
_ = ioutil.WriteFile("id_ed25519.pub", authorizedKey, 0644)
}
Description-md5:
Multi-Arch: foreign
Homepage: https://github.com/mikesmitty/edkey
Section: golang
Priority: optional
Filename: pool/main/g/golang-github-mikesmitty-edkey/golang-github-mikesmitty-edkey-dev_0.0~git20170222.3356ea4-2_all.deb