FiloSottile / age

A simple, modern and secure encryption tool (and Go library) with small explicit keys, no config options, and UNIX-style composability.
https://age-encryption.org
BSD 3-Clause "New" or "Revised" License
16.83k stars 492 forks source link

Export parseSSHIdentity #181

Open sylr opened 3 years ago

sylr commented 3 years ago

I'm using age as a lib and I'd like to replicate the behavior of loading keys found at~/.ssh/id_(rsa|ed25519).

To do so right now I had to copy parseSSHIdentity, readPubFile and readPassphrase in my project.

It would be helpful if parseSSHIdentity was exported.

Cheers.