PGP Encryption Utilities

Overview

Allows PGP encryption and decryption of files. Support for Signing documents and Verifying the signature using PGP.

Key Features & Functionality

Smart Services:

  • PGP Encrypt - using provided public certificate
  • PGP Decrypt - using provided private certificate and password
  • PGP Signfile - Sign File With PGP
  • PGP Verifyfile - Verify File With PGP
Anonymous
  • Getting this error while decrypting a file:


    class org.bouncycastle.openpgp.PGPLiteralData cannot be cast to class org.bouncycastle.openpgp.PGPCompressedData (org.bouncycastle.openpgp.PGPLiteralData and org.bouncycastle.openpgp.PGPCompressedData are in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @47279598)

    I see a similar issue was found 3 years ago but there was no response. Assistance would be appreciated.

  • @Vuram

    In Class 
    decryptFileWithExtension & Class decryptFile
    PGPCompressedData cData = (PGPCompressedData)plainFact.nextObject();
    I believe this is the error because in this case PGPLiteralData is casted to PGPCompressedData. Checking instanceof plainFact.nextObject() before any casts would prevent the error. 


  •  I'm encountering a similar error. Were you able to resolve it? If so, could you please share the solution you used?

  • v3.0.0 Release Notes
    • Deprecated the following smart services
    • Encrypt File With ECDH Algorithm
    • Decrypt File With ECDH Algorithm
    • Generate ECC Secret Key
    • Fixed a bug in the Decrypt file with PGP smart service where there was a casting issue in the decryptFileWithExtenstion method.
  • Hi Team, 

    We are using this plugin for encrypting the file (Excel with two sheets) before sending through SFTP, while decrypting we have only one sheet. 

    Have anyone tried Excel with Two sheets? 

    Thanks in advance.

  • What might be the reason for deprecating these ECDH smart services? Also, what alternatives are available if we need to encrypt a file using the Elliptic Curve algorithm?