Session_FPEFormatEncryption
This API encrypts data using FPE while preserving format of plaintext.
URL
./Session_FPEFormatEncryption
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_FPEFormatEncryption>
<format>LAST_FOUR</format>
<keyName>cryptokey</keyName>
<transformation>FPE/AES/CARD10</transformation>
<data>713-456</data>
<!--Optional:-->
<tweakData>hello</tweakData>
<!--Optional:-->
<tweakAlgo>SHA1</tweakAlgo>
</prot:Session_FPEFormatEncryption>
Output
Encrypted data with last four characters preserved.
<ns2:Session_FPEFormatEncryptResponse xmlns:ns2="http://dsws.org/protectappws/">163-456</ns2:Session_ FPEFormatEncryptResponse>