I have a custom DOB field which is platform encrypted. I can see the field value as '7/7/1777' in standard layouts and in highlights panel in console. But when the field is used in a VF page it displays the original valeu eg:- '6/6/2016'.
My requirement is that, users can only see the original value when they have the 'View encrypted data' permission enabled.
How do I achieve the above in
On page load the value is retrieved from the contact and shown to the agent. But it should show as '7/7/1777' instead of the original value.