This content has been marked as final. Show 1 reply
If you want to encrypt any sensitive information that is stored in a Nucleus component properties file, you can do that by providing an implementation of atg.nucleus.PropertyValueDecoder. Then within your component you can decode the value of encoded property before you actually use it.
PropertyValueDecoder has two variants of decode() method as: public String decode(String s) and public Object decode(Object o). There are two default OOB implementation provided also for PropertyValueDecoder which are atg.service.jdbc.SimpleLoginDecoder and atg.crypto.CipherPropertyValueDecoder. SimpleLoginDecoder uses the OOB class atg.core.util.Base64 for decoding the encrypted value in the properties file while CipherPropertyValueDecoder class can use a atg.crypto.Cipher object where you can have you own encrypt/decrypt implementations.