How to decrypt encrypted files using a PEM private key
Posted
by Phil Cole
on Stack Overflow
See other posts from Stack Overflow
or by Phil Cole
Published on 2010-03-25T10:38:29Z
Indexed on
2010/03/25
10:43 UTC
Read the original article
Hit count: 567
perl
|encrypting-code
I have files which have either been encrypted with a public key and the Blowfish algorithm, or a public key and the AES-256 algorithm.
I'm looking to put together a perl script that would be able to use the private keys (which I do have) to decrypt the files.
The public and private key files are all in PEM format, and while I can find ways of reading the PEM files, and ways of decrypting data with a key, I haven't yet found a way of going from PEM -> key.
Any suggestions?
© Stack Overflow or respective owner