Read 50+ SailPoint IIQ Interview Questions and Answers for Beginners and Experienced

Decrypt or Encrypt

SailPoint IIQ provides out of the box rule where value can be encrypted or decrypted. Usually passwords are encrypted and decrypted for security purpose.

Rule name for Decrypt OR Encrypt value in SailPoint IIQ

Decrypt is the name of the SailPoint rule for encryption and decryption purpose. This rule is present in SailPoint package itself. Anyone can access it through SailPoint IIQ debug page.

If you can not find this rule then you can create one. This rule is really helpful to encrypt or decrypt the value.

Values can be encrypt or decrypt by using <strong>context.encrypt</strong>  and <strong>context.decrypt</strong> method.


<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE Rule PUBLIC "sailpoint.dtd" "sailpoint.dtd">
<Rule created="1663755123877" id="297e72dd835f78e701835f887ca50021" language="beanshell" modified="1663755236310" name="Decrypt">
<Source>
import java.lang.*;
import java.util.*;
import sailpoint.object.*;

return context.encrypt("12345");

//return context.decrypt("1:ACP:Bcp4MS1nacFevo6JRWrMbv9JfZAKCw6IZvfuLawBKiU=");

</Source>
</Rule>

 

Output 


<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE String PUBLIC "sailpoint.dtd" "sailpoint.dtd">
<String>1:ACP:dfM40Eb2GIURvdGKUDZ656+GYLEp/zUZrn9jNtZcll0=</String>