node-rsa icon indicating copy to clipboard operation
node-rsa copied to clipboard

[HELP] Extract raw components from pem file

Open sreeksp opened this issue 9 years ago • 1 comments

Is there a way to extract raw components of pem file in json format (hex encoded) ?

sreeksp avatar Oct 23 '17 20:10 sreeksp

Sure, you can import from pem and then export to json key.exportKey('components'); and next convert buffer values to hex by you self.

rzcoder avatar Oct 24 '17 06:10 rzcoder