Giter VIP home page Giter VIP logo

custom-azure-data-encryption's Introduction

Custom Data Encryption

Build Status

Azure Custom Data Encryption Library provides a light weight SDK for securing your encryption keys with asymetrical RSA keys.

Installation

pip install git+https://github.com/microsoft/custom-azure-data-encryption.git

High Level Overview

Encryption

High Level Encryption

Decryption

High Level Decryption

This encryption library seemlessly ties into Azure Key Vault for easy use!

Quick Start

You can look at demo.py for the reference on how to use this library.

Tests

To run tests:

    pip install .
    pip install -r requirements.txt
    pytest

Samples

Prerequisites

  • python 2.7 or 3.6+
  • virtualenv for managing python packages between projects.

Run Samples

  1. Clone Repository

  2. Create virtual environment using python 2.7 interpreter

    virtualenv --python=/usr/bin/python2.7 sample_virtual_env
  3. Install Dependencies

    pip install .
  4. Log in and use the Azure CLI

    az login
    To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code <Your Code> to authenticate.
  5. Set the subscription you would like to provision the resources on

    az account set -s <Your Subscrition Name or Id>
  6. Provision a Service Principal and Key Vault by running deploy.sh

    • Run export commands printed by the script when finished.
    bash scripts/deploy.sh
    Enter resource group name:
    sample-rg
    Enter key vault name:
    sample-kv
    Enter location (westus, westus2, eastus, ...):
    westus
    
    ...
    
    export AZURE_TENANT_ID=<guid>
    export AZURE_CLIENT_ID=<guid>
    export AZURE_CLIENT_SECRET=<guid>
    export VAULT_URI=<key_vault_uri>
    export KEY_NAME=sample-key
    export KEY_VERSION=<key_version>
  7. Run Sample from root directory

    python samples/demo.py

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

custom-azure-data-encryption's People

Contributors

logachev avatar microsoftopensource avatar msftgits avatar nevenkitasuno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

custom-azure-data-encryption's Issues

Support python 3+

Lib currently works with python 2.7, but supporting 3+ would be on the roadmap.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.