Note: we are on a Pega Infinity cloud system but the application is converted from an old 6.1 application and so the use of TextEncrypted property type, whilst deprecated, is to be used here.
Let’s say I have a value “12345” that I store in a TextEncrypted property Prop1. When I view Prop1 I see “ABCDE”, the encrypted value. When I decrypt the value using the decrypt function I see “12345” again. So far so good.
Now say I have another TextEncrypted property, Prop2. If I move the value of Prop1 to Prop2 via a simple Property-Set or similar mechanism, does it get encrypted again to a new value? Or is Pega smart enough to move the value as-is and leave it alone?
If it encrypts it again, (e.g. to “VWXYZ”) then I would have to decrypt it twice before I could use it: once to decrypt it to “ABCDE” and then again to get back to “12345”? At the point at which that data is being used, we might not know that it has been “double-encrypted” (or triple-encrypted, etc.) and so programmatically we couldn’t know how many times to run the decryption function.
Does anyone know how Pega handles this?