amanoske / Transformer

A C# client library for simplifying encoding and decoding sensitive data using the Transform Secret Engine in HashiCorp Vault

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is Transformer?

Transformer is a C#.net class library that leverages VaultSharp to manage encoding and decoding data via the Transform Secret Engine in HashiCorp Vault Enterprise

How does it work?

Once you have configured your Vault system and auth method, Transform simplifies the process of encoding and decoding data in a threadsafe manner.

//asssume IVaultClient client initialized, roles within Endpoint configured for "FPE-role." 
//See SharpVault for more details

Transformer transform = new Transformer(client);
transform.role = "FPE-SSN";

//Encode a social security number
string encoded_ssn = transform.encode(encoded_ssn);
//Do whatever you want with encoded_ssn here (for example: put it in a DB) as it's ciphertext

//Decode a social security number
string decoded_ssn = transform.decode(encoded_ssn);

About

A C# client library for simplifying encoding and decoding sensitive data using the Transform Secret Engine in HashiCorp Vault


Languages

Language:C# 100.0%