Decrypt a password from BASE64 (fglpass)
This task shows how to decrypt an RSA-encrypted password using the fglpass tool.
The fglpass tool uses the RSA private key that was used to encrypt it or that is associated to a certificate containing the public part of that private key.
Tip:
You can also use xml.Encryption.RSADecrypt() to decrypt an RSA-encrypted password from within your Genero
program (so you do not need to run fglpass -d or other external tools); go to Decrypting with an RSA key (xml.Encryption.RSADecrypt) for usage and examples.
- To decrypt, run:
fglpass -d -k RSAPriv.pem - If RSAPriv.pem is protected, you are prompted for the passphrase:
Enter pass phrase for RSAPriv.pem: - Then paste the BASE64-encoded encrypted password when prompted:
Enter password :Pzk/fNRhetdJDZz5kjNg7P0XET4XsW6bys/fi0 DvugxRPh9d/s41oAws65JY0EPb2zytQjxZ/dwaaRzJPYoQmA== fglpassprints the decrypted password in clear text to the console (for examplehello).