Encrypted name in relate field

I have a custom module in which I am encrypting the first name and last name. This module is then accessed in another module using a relate field. The issue is that the name shows up as encrypted in the relate field. Is there any way I can decrypt it before showing it? Any insight will be very much appreciated.