You need to sign in to do that
Don't have an account?

Decrypt the encrypted datatype value
n my SOject am having a encrypted(Encrypt_order) data type value and i create another one text(Decrypt_order) data type value ,after inserting the value in Encrypted(Encrypt_order) data ,i want to decrypt that encrypted value(Encrypt_order) and shown in that text(Decrypt_order) data type field value.......Any examples.....
Thanks
==========
VenkatSForce
It looks something like this:
In other words, any time the encrypted field appears in Apex Code, it will have already been decrypted for you. These fields are not meant to keep the data secure from the system, but to keep them secure from unauthorized users (and the system is always considered authorized). Therefore, you don't need to handle these fields any differently than a normal field, except that you should consider not exposing the encrypted value in a decrypted field if you can help it. Users with View Encrypted Data will automatically see the decrypted version instead.