DataProtection Class
Provides methods for encrypting and decrypting data.
Namespace: Gemstone.Security.CryptographyAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.164 -- Release Build+6bbd7ea5ff4ad8917f12d693358b77d083ee278e
public static class DataProtection
Public NotInheritable Class DataProtection
public ref class DataProtection abstract sealed
Gemstone.Security.Cryptography.DataProtection = function();
Type.createClass(
'Gemstone.Security.Cryptography.DataProtection');
- Inheritance
- Object DataProtection
This is a safety wrapper around the IDataProtector class such that it can be used with
LocalMachine scope regardless of current user. This is especially important for applications
that may be running as user account that has no association to the current user, e.g., an Azure AD
user or database account when authenticated using AdoSecurityProvider.
| DefineSettings |
Establishes default settings for the config file.
|
| Protect |
Encrypts the data in a specified byte array and returns a byte array that contains the encrypted data.
|
| Unprotect |
Decrypts the data in a specified byte array and returns a byte array that contains the decrypted data.
|