Cryptography, Cybersecurity.
agessh.NewEd25519Recipient(pub) i, _ := agessh.NewEd25519Identity(private) fileKey := make([]byte, 16) _, _ = rand.Read(fileKey) stanzas, _ := r.Wrap(fileKey) out, _ := i.Unwrap(stanzas) fmt.Printf("== Private key ==\n") fmt.Printf("Private key=%s\n", base64.StdEncoding.EncodeToString(private))