xml-crypto
xml-crypto copied to clipboard
Add privateKeyPassword option for private key decryption
Introduces the privateKeyPassword
option, enabling users to define the password for decrypting encrypted private keys.
The option is ignored if privateKey
is not set, or if it is an instance of crypto.KeyObject
closes #45
One more thought for you: do you think it would make sense to allow a string
or a function that returns string
for privateKeyPassphrase
? That would allow a function to retrieve that data from a secure vault or environment variable of some sort.
Thank you for the more complete tests.
@shunkica , I was just looking back at some PRs to see if we could get them landed. Let me know what you think about my last comment.
@shunkica , I was just looking back at some PRs to see if we could get them landed. Let me know what you think about my last comment.
Sorry this is not something I have bandwidth for right now. If you have time to implement it go ahead.