Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 2.03 KB

File metadata and controls

46 lines (32 loc) · 2.03 KB

Code Samples

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.

Getting started

Prerequisites

Enable access to your key

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:

  1. You have firewall access to your Azure Key Vault.
  2. 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:
    1. Get
    2. List
    3. Create
    4. Unwrap Key
    5. Wrap Key
    6. Verify
    7. Sign

In this section

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