TritonDataCenter / node-sshpk

Parse, convert, fingerprint and use SSH keys in pure node.js
MIT License
189 stars 50 forks source link

Encryption #84

Open ozyman42 opened 2 years ago

ozyman42 commented 2 years ago

This library has APIs for signing and verifying an existing signature. How can I use the parsed private key to AES decrypt something which was encrypted with the corresponding public key?

I know other libraries can handle this, but it's not clear how to pass the key from this lib to another, and if it might be in the scope of node-sspk to potentially offer some methods for encryption/decryption.