Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH key usage #26

Open
Tchoupinax opened this issue Jan 9, 2025 · 0 comments
Open

SSH key usage #26

Tchoupinax opened this issue Jan 9, 2025 · 0 comments

Comments

@Tchoupinax
Copy link

Hello,

First of all, thank you for your work, I'm using age for years now to encrypt backups and data. It works very well!

I started a new project and this library answers my need because I would have liked to be closed to Typescript ecosystem.

I understand age supports several system to encrypt data like passphrase, generated identity but it also supports ssh key (RSA). I would like to use a public RSA key with this library and I met issues.

code

e.addRecipient(recipient); // recipient is a public key, the same I use for age -r public key [...]

  • String must be lowercase or uppercase (so I added toLowerCase())
  • Unknown letter: "=". Allowed: qpzry9x8gf2tvdw0s3jn54khce6mua7l

I guess either this library does not support RSA key either it's not implemented.

I can generate identity and recipient with provided helpers but I would also really like use SSH keys (RSA and ed25519). As I'm not confortable with this, I would like to know your opinion about that and what are options/solutions.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant