xml-crypto icon indicating copy to clipboard operation
xml-crypto copied to clipboard

Add privateKeyPassword option for private key decryption

Open shunkica opened this issue 10 months ago • 4 comments

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

shunkica avatar Apr 16 '24 12:04 shunkica

closes #45

shunkica avatar Apr 16 '24 12:04 shunkica

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.

cjbarth avatar Apr 27 '24 20:04 cjbarth

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

cjbarth avatar Aug 24 '24 02:08 cjbarth

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

shunkica avatar Aug 25 '24 08:08 shunkica