FPEFormatDecryption
This API decrypts data using FPE while preserving format of ciphertext.
URL
<http/https>://<host-name>:<Port>/protectappws/services/rest/fpeFormat/decrypt
Input Parameters
Parameters | Description |
---|---|
userName | User name. |
password | Password associated wit the user. |
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 decrypted. |
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. |
certAlias | Client certificate alias for making SSL connections (optional). |
certPassword | Password for the provided certificate alias (optional). |
Sample REST call for cxf
request
{
"FPEFormatDecryptionRequest": {
"userName": "cryptouser",
"password": "safenet@123",
"format": "LAST_FOUR",
"keyName": "AESKey",
"transformation": "FPE/AES/CARD10",
"data": "713-456",
"tweakData": "hello",
"tweakAlgo": "SHA1",
}
}
response
{
"FPEFormatDecryptionRequest": {
"data": "453-456"
}
}