PGP

Discover more about the PGP component and how to use it on the Digibee Integration Platform.

PGP (Pretty Good Privacy) is a cryptography component that provides authentication and cryptographic privacy for data communication.

Parameters

Take a look at the configuration parameters of the component. Parameters supported by Double Braces expressions are marked with (DB).

Messages flow

Operation Encrypt Fields

Input

{  
    "parameter": "TEXT TO BE ENCRYPTED"
}

Output

{  
    "parameter": "AA01FF" // text encrypted
}

Operation Decrypt Fields

Input

{  
    "parameter": "AA01FF" // text encrypted
}

Output

{  
    "parameter": "TEXT DECRYPTED"
}

Operation Encrypt Payload

Input

{  
    "parameter": "TEXT TO BE ENCRYPTED"
}

Output

{  
    "result": "AA01FF" // text encrypted
}

Operation Decrypt Payload

Input

{  
    "parameter": "AA01FF" // text encrypted
}

Output

{  
    "result": "TEXT DECRYPTED"
}

Operation Encrypt File

Input

{  
    "fileName": "file.txt"
}

Output

{  
    "outputFileName": "file.txt.pgp" // file encrypted
}

Operation Decrypt File

Input

{  
    "fileName": "file.txt.pgp" // file encrypted
}

Output

{  
    "outputFileName": "file.txt.dec" // file decrypted
}

Output with error

{   
    "error": "java.io.FileNotFoundException: data1.csv (No such file or directory)",  
    "success": false
}
  • success: “false” when the operation fails.

  • error: information about the occurred error.

Last updated