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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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
.
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))'