Add the package to an existing Umbraco website (v13+) from nuget:
dotnet add package Umbraco.Community.EncrytionPropertyEditor
Open your Umbraco project in Visual Studio. Right-click on your solution and select Manage NuGet Packages. Click on Browse and search for EncryptionPropertyEditor. Install the package.
In the Umbraco backoffice, navigate to Settings. Under Data Types, create a new data type and select Encryption Property Editor as the editor. Save the data type. In the data type configuration, set the encryption key and algorithm as per your requirements.
Add the newly created data type to your document types. Use it in your content nodes to encrypt data.
The Encryption Property Editor allows you to securely encrypt data entered in the Umbraco backoffice. If the Backoffice user is allowed to see the encrypted value, they can view it in the backoffice. Note that if you use hash, the value will not be decryptable, and the original value cannot be retrieved. Ensure you have the necessary encryption keys configured in your appsettings.json.
"EncryptionPropertyEditor": {
"Password" : "your-password"
}
Contributions to this package are most welcome! Please read the Contributing Guidelines.
A massive thank you to Nik Rimington for his most valuable contributions!