Ethereal Secrets Client
Usage
To add the library to your project:
$ npm i --save @neoskop/ethereal-secrets-client
to store a value 'bar' under the key 'foo' encrypted in the session storage:
let client = new EtherealSecretsClient({
endpoint: 'http://localhost:8080/secrets'
});
client.setItem('foo', 'bar');
client.getItem('foo'); # => bar
client.removeItem('foo');
Test suite
To run integration tests in case you checked out the repository (awesome!):
$ docker pull neoskop/ethereal-secrets-server && docker-compose -f docker-compose.test.yml up --abort-on-container-exit --build