DataProtection Class

Provides methods for encrypting and decrypting data.

Definition

Namespace: Gemstone.Security.Cryptography
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.165 -- Release Build+e14d337b173ad33e50be6747ce5b02f477f99484
public static class DataProtection
Inheritance
Object    DataProtection

Remarks

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.

Methods

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.

Fields

DataProtectionKeysFolder Folder name for data protection keys.
DefaultSettingsCategory Default settings category for cryptography services.
DefaultUserDataProtectionTimeout Default timeout, in minutes, for user-specific data protection provider.

See Also