You need to sign in to do that
Don't have an account?
Sumant Kuchipudi
How to decrypt the encrpted password in apex?
Hi,
I have a custom object with an encrypted text field to store password from record. I'm trying to write a trigger to read the encrypted field and send via email. Would that be possible? I tried to decrypt the password but recieved the below error.
I have a custom object with an encrypted text field to store password from record. I'm trying to write a trigger to read the encrypted field and send via email. Would that be possible? I tried to decrypt the password but recieved the below error.
System.StringException: Unrecognized base64 character: *
Can you share a reproducible code snippet that I can use to test in my org?
Related posts: https://salesforce.stackexchange.com/questions/145627/salesforce-decrypt-encrypted-field
https://salesforce.stackexchange.com/questions/90063/decrypting-salesforce-encrypted-fields
Thanks
All Answers
Can you share a reproducible code snippet that I can use to test in my org?
Related posts: https://salesforce.stackexchange.com/questions/145627/salesforce-decrypt-encrypted-field
https://salesforce.stackexchange.com/questions/90063/decrypting-salesforce-encrypted-fields
Thanks
I got the answer from both links you shared. Thank you.
Another question related to this: If an user who don't have the "Vew Encrypted Data" Permission sets enabled send email with the password (via trigger), would the be visible to the end