Session_FPEEncrypt
This API encrypts data using FPE.
URL
./ Session_FPEEncrypt
Input Parameters
Parameters | Description |
---|---|
plaintext | Data to be encrypted. |
keyname | Name of the key. |
keyiv | Hex encoded 56 bytes if plaintext > 56 Numeric value (optional). |
tweakAlgo | Default is none (optional). |
tweakData | If tweak algorithm is "None" or not passed in the API, the value must be HEX encoded 64 bit long string (HEX encoding will consume 16 characters). Tweak data is mandatory if Tweak Algo is given, else it is optional. |
Note
The Session_FPEEncrypt
API only works with the FPE/AES/CARD10 algorithm.
Sample SOAP Parameters
<prot:Session_FPEEncrypt>
<keyname>ghostKey2</keyname>
<!--Optional:-->
<keyiv></keyiv>
<!--Optional:-->
<tweakAlgo>none</tweakAlgo>
<tweakData>1a23456712345678</tweakData>
<plaintext>239494</plaintext>
</prot:Session_FPEEncrypt>
Output
Encrypted data in Hex.
<ns2:Session_FPEEncryptResponse xmlns:ns2="http://dsws.org/protectappws/">393336313538</ns2:Session_FPEEncryptResponse>