Session_Decrypt
This API decrypts data using key specified by name.
URL
./Session_Decrypt
Input Parameters
Parameters | Description |
---|---|
keyname | Name of the key to be used for decryption. |
ciphertext | Encrypted data represented in Hex. |
keyiv | Optional/blank. If blank, the key’s default IV is used, else, specify in IV in Hex characters. The number of Hex character must be specific to the transformation used. |
transformation | Transformation to be used. For example: AES/ ECIES/CBC/PKCS5Padding. For more information on supported ECIES transformations, refer to the CipherTrust Application Data Protection for Java User Guide. |
outputformat | (Optional), displays output in following formats: — HEX — STR — —BASE64. Default is STR. |
Sample SOAP Parameters
<prot:Session_Decrypt>
<keyname>aes256vt</keyname>
<ciphertext> 10009046C980ECAFC6A79765A7ABAE01C846C5</ciphertext>
<!--Optional:-->
<keyiv></keyiv>
<transformation>AES/CBC/PKCS5Padding</transformation>
<!--Optional:-->
<outputformat>STR</outputformat>
</prot:Session_Decrypt>
Output
Plaintext data.
<ns1:Session_DecryptResponse xmlns:ns1="http://dsws.org/protectappws/">0000111122223333</ns1:Session_DecryptResponse>