Obfuscate Credentials
Credentials can be obfuscated using any of the following options:
Passphrase utility
The following steps illustrates how to use the passphrase encryption utility:
Execute the Passphrase.jar file:
The user may also provide the text (to be obfuscated) in the above command as parameter as shown below:
Note
When text is provided as parameter, skip step 2.
Enter the text to be obfuscated:
Repeat the above steps for password.
Run the sample, but make sure
Credentials_Encrypted
parameter is set to yes.The username and password should be encrypted.
Set the
Credentials_Encrypted
parameter to yes in theCADP_for_JAVA.properties
file. This parameter encrypts the credentials.Run
SecretKeyEncryptionSample
to validate whether the credentials are obfuscated.Here, the first two agruments are encrypted username and password.
Obfuscation API
Use the IngrianProvider.obfuscate
API to obfuscate username and password. The following sample shows how this API obfuscates Username using the API.