mscdex / ssh2

SSH2 client and server modules written in pure JavaScript for node.js
MIT License
5.51k stars 663 forks source link

Feature request: Support crypto.subtle.generateKey #1210

Open Downchuck opened 2 years ago

Downchuck commented 2 years ago

The node.js crypto (aka webcrypto) subtle generateKey method wraps keys in a standard API now.

One can just do if(key instanceof CryptoKey) and get the appropriate algorithm, settings and run an exportKey (or importKey) as desired for easier key generation.

mscdex commented 2 years ago

I'm not entirely sure what part of ssh2 you envision this being used in?