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.
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.