1. If you are using site cipher mechanism then EncryptTextPropertyValue Edit Input rule to perform encryption and ShowTextEncryptedPropertyValue control can be used to perform the decryption of the property value to be displayed in UI.
2. If you are not using site cipher mechanism then you can write an Edit Input rule with below code for encryption,
For decryption of the property in the UI you can write a custom control with the help of ShowTextEncryptedPropertyValue control to decrypt the property value and display it in UI with the help of below code,
Hope this approaches might help you to achieve your requirement.
@LoayA700 i had not tried this at my end to confirm you regarding this query, by looking into the Public API i found these two methods and suggested you. As per the Public API if encrypt method is working fine then decrypt should also work as expected.