pivotal-cf/sample-credhub-encryption-provider

Name: sample-credhub-encryption-provider

Owner: Pivotal Cloud Foundry

Description: null

Created: 2018-02-28 20:15:52.0

Updated: 2018-05-23 16:09:12.0

Pushed: 2018-05-23 16:09:10.0

Homepage: null

Size: 81

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Sample CredHub Encryption Provider

This repo serves as a reference implementation for a CredHub encryption provider.

It is intended to simulate usage of an HSM or a service such as Amazon's KMS, and takes a key identifier in order to perform encrypt/decrypt operations. There is only one key built into this server, it uses the identifier key1.

Usage

Start the encryption server with:

le runServer

Start the client and have it encrypt:

le runClient '-Pclientargs=encrypt,key1,foo'

Start the client and have it decrypt (using values you receive from encrypt):

le runClient '-Pclientargs=decrypt,key1,((value)),((nonce))'

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.