I have a custom object named Merchant_Application with some custom fields like Fed Tax Id and SSN etc. Since I don't want my Sales Reps to see ful text in these fields so I am making these fields as Text(Encrypted). Now once sales reps create these merchant application, I am providing them a capability to send this information to a third part underwriting system via an API call. But since Sales Reps profile does't have "View Encrypted Date" privileges, SOQL query in APEX is retrieving only the masked value. The challenge for me is that how can I send this value as full value instead of masked value and still show Sales Rep only masked value in UI? I can't enable "View Encrypted Data" permission for Sales Rep profile because that will give them capability to see the paling text value in UI.
I researched some posts and people are talking about Crypto service. I have never used Crypto service and to me it seemed like I can only decrypt using Crypto if it was encrypted using some key. May be I don't know much about Crypto service. Help me get past this hurdle. Really appreciate it.
Thanks