This folder contains samples that demonstrate how to use the Microsoft Data Encryption SDK for .NET. Each sample includes a README file that explains how to run and use the sample.
- An Azure account and subscription. If you don't have one, sign up for a free trial.
- Visual Studio.
- Azure CLI
- Create a key named “ExampleKey” in Azure Key Vault by following one of the Azure Key Vault quick start tutorials.
In order to access the key in Azure Key Vault and use it for encryption and decryption operations, you need to ensure the key has the appropriate access defined. You need to ensure:
- You have firewall access to your Azure Key Vault.
- Your access policy grants sufficient access to perform key operations in your key vault. The samples will use user-based access to read keys from the key vault. In order to do that, the user you use to log in to Azure Key Vault requires to following Key Permissions:
- Get
- List
- Create
- Unwrap Key
- Wrap Key
- Verify
- Sign
Encrypt an enumerable list of numbers
Encrypt and decrypt a custom object
Encrypt and decrypt a Guid using custom settings
Encrypt and decrypt a DateTime using default settings
Encrypt and decrypt a string using a plaintext key
Encrypt and decrypt a parquet file