Skip to content

TartanLlama/azure-keyvault-encryption-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Keyvault Encryption/Decryption in C++ and Rust

This repo has programs which use the Azure SDK for C++ and Rust to retrieve a key from an Azure Key Vault and then encrypt or decrypt messages with it.

The encryption program is written in C++ and is in the encrypt folder. The decryption program is written in Rust and is in the decrypt folder.

Building

encrypt

Install vcpkg, then:

$ vcpkg install --triplet=x64-windows-static --feature-flags=manifests

Then build with CMake using your prefered method.

decrypt

$ cargo build

Running

The following environment flags are expected to be set for both encrypt and decrypt:

  • AZURE_CLIENT_ID: Azure ActiveDirectory application registration client ID
  • AZURE_CLIENT_SECRET: Azure ActiveDirectory application registration client secret
  • AZURE_TENANT_ID: Azure ActiveDirectory application registration tenant ID
  • AZURE_KEY_VAULT_URI: The URI of the Azure Key Vault
  • AZURE_KEY_NAME: The name of the Azure Key Vault key

encrypt

$ ./azure_encrypt

decrypt

$ cargo run

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published