Support the generation of an age key via Golang library #436
Replies: 2 comments
-
So apologies from me. I raised this issue because I saw that the My solution for others who are wondering same thing is the following: My Solutionimport (
"filippo.io/age"
)
identity, err := age.GenerateX25519Identity()
if err != nil {
fmt.Println(err)
return
}
fmt.Println(identity.String())
fmt.Println(identity.Recipient().String()) Output was then the keys that you would get in the Output
|
Beta Was this translation helpful? Give feedback.
-
Feel free to close |
Beta Was this translation helpful? Give feedback.
-
Not sure if this is possible currently (I've had a go to see if it's possible), but I would really love the ability to generate an age key in Golang.
Otherwise I'm having to call the
age-keygen
command line, which is flaky because that means I have to read the file that was created and read thepublic-key
in order to start encrypting things.Example of using
exec
to runage-keygen
:What would be better
Beta Was this translation helpful? Give feedback.
All reactions