Session_FPEFormatDecryption
This API decrypts data using FPE while preserving format of ciphertext.
URL
./Session_FPEFormatDecryption
Input Parameters
Parameters | Description |
---|---|
format | The format in which some part of input data is to be kept intact, that is, the selected part of the input data is not encrypted Valid values are: — LAST_FOUR — FIRST_SIX — FIRST_SIX_LAST_FOUR — FIRST_TWO_LAST_FOUR — NONE |
keyName | Name of the key. |
transformation | Transformation to be used. It overrides the standard padding. |
data | Data to be encrypted. |
tweakData | Optional, If tweak data algorithm is "None" or absent, the value must be HEX encoded string representing 64 bit long (hence HEX encoding will consume 16 characters). Tweak data is mandatory if Tweak Algo is given, else it is optional. |
tweakAlgo | Optional, default is none. |
Sample SOAP Parameters
<prot:Session_FPEFormatDecryption>
<format>LAST_FOUR</format>
<keyName>cryptokeytest</keyName>
<transformation>FPE/AES/CARD10</transformation>
<data>713-456</data>
<!--Optional:-->
<tweakData>hello</tweakData>
<!--Optional:-->
<tweakAlgo>SHA1</tweakAlgo>
</prot:Session_FPEFormatDecryption>
Output
Plaintext data with last four characters preserved.
<ns2:Session_FPEFormatDecryptionResponse xmlns:ns2="http://dsws.org/protectappws/">453-456</ns2:Session_ FPEFormatDecryptionResponse>