How to find a user has encryption key or not?

Hi All.

I have encrypted few fields in one form. Encrypted key is “dfgh123”. i want to check whether the user has encrypted key or not? if he doesn’t have I want to popup a message like u don have encrypt key…etc.

How to do it in formula language in the click event (button)?