Non Deterministic Privacera Encryption
Non-deterministic encryption ensures that the same input, when encrypted multiple times, produces a different output each time.
List of Connectors Supporting Non Deterministic Encryption
| Connector | Supported |
FEU | Yes |
Streamset | Yes |
Databricks | Yes |
Algorithm Supporting Non Deterministic Encryption
| Algorithm Type | Supported |
AlphaNumeric | Yes |
FPE | Yes |
Standard | Yes |
Standard 256 bit | Yes |
List of Datatype Supporting Non Deterministic Encryption
| Format Type | Supported |
TEXT | Yes |
How to Enable Non Deterministic Encryption
To enable or disable Non Deterministic Encryption, follow these steps:
- In the Privacera Portal, navigate to Encryption & Masking then go to Schemes.
- Click on ADD SCHEME , select
Scheme Type as Encryption and fill other details such as Name , Encryption API ,Scope ,Algorithm,Data Validation. - Select Format Type as
Text only. - enable
Non-deterministic encrypted data toggle to enable Non Deterministic Encryption. - When toggle is enabled it will ask for
Random Text Length enter positive non zero value , this length will be used to be appended with input data for Non-deterministic encryption.
Note: Non-deterministic encryption is controlled by the selected algorithm and cannot be enabled or disabled once scheme is created.
Sample Results
Format Type : TEXT, Algorithm : AlphaNumeric, Non-Deterministic Encryption Enabled and Random Text Length is 3
| Protect/ Unprotect | Request | Response |
| Protect | Hello | 5wuDDUmD |
| Protect | Hello | gW76xEmR |
| Unprotect | 5wuDDUmD | Hello |
| Unprotect | gW76xEmR | Hello |
Format Type : TEXT, Algorithm : FPE, Non-Deterministic Encryption Enabled and Random Text Length is 3
| Protect/ Unprotect | Request | Response |
| Protect | Hello | AoTzx6UX |
| Protect | Hello | hucgIJoG |
| Unprotect | AoTzx6UX | Hello |
| Unprotect | hucgIJoG | Hello |
Format Type : TEXT, Algorithm : Standard, Non-Deterministic Encryption Enabled and Random Text Length is 3
| Protect/ Unprotect | Request | Response |
| Protect | Hello | 3PRbXidq29iIJQNF2FAPjQ== |
| Protect | Hello | OlNuWMiiBKTrE1J5W8IMGQ== |
| Unprotect | 3PRbXidq29iIJQNF2FAPjQ== | Hello |
| Unprotect | OlNuWMiiBKTrE1J5W8IMGQ== | Hello |
Format Type : TEXT, Algorithm : Standard 256 bit, Non-Deterministic Encryption Enabled and Random Text Length is 3
| Protect/ Unprotect | Input | Response |
| Protect | Hello | Sjv8n8PyZSQAHe05H1MgPA== |
| Protect | Hello | XEbszgewFTYlISInZnCReA== |
| Unprotect | Sjv8n8PyZSQAHe05H1MgPA== | Hello |
| Unprotect | XEbszgewFTYlISInZnCReA== | Hello |
Note: Random characters are chosen from a pool of 62 alphanumeric characters (A–Z, a–z, 0–9) and appended to the input before encryption. If the same input is combined with the same random text, identical encrypted values can occur.
To reduce the probability of duplicate encrypted outputs and improve security, it is recommended to use a higher value of random text length. A random string introduces higher variability, ensuring more distinct encrypted results even for identical inputs.