Endpoint Encryption

 View Only

PGP Decryption for Strings Encrypted using Bouncy Castle API

  • 1.  PGP Decryption for Strings Encrypted using Bouncy Castle API

    Posted Jun 18, 2019 03:01 PM

    Hi Everyone, 

     

    Currently I'm using Bouncy Castle JARs(https://www.bouncycastle.org/) for Encrypting and Signinig a String. The encryption and signing is not a single function call, but is is encryption followed by signing the encrypted string. 

    This Encrytped and Signed Token is shared with the Vendor who uses Symantec Command Line to Decrypted and verify the encrypted string. But when the following pgp command is executed 

    pgp --decrypt "file" --passphrase "SecretKey" 

    We get a encrypted file which needs to be decrypted again using the above command. 

    Is it not possible to verify and decrypt the string in one step if it is encrypted using Bouncy Castle API ? 

    As per the documentation,

    --decrypt Decrypts encrypted files with local keys or keys on a PGP KMS server. If data being decrypted is also signed, the signature is automatically verified during the decryption process. The usage format is: pgp --decrypt [ ...] [...] [options]

    Please share your thoughts and insights. 

    Note: When I use PGP Command Line for encryption and signinig, the decryption and verification process happens in one step. 

     

    Thanks and Regards,

    Vigneshwaran