zenypass-vault-service
cbox-vault that encrypt-writes/read-decrypts Account instances. exposes an Account factory.
example
debug.enable'zp-vault-example:*' // setup id encoder specifications (optional).reducearr.concatbin, .then // setup pbkdf2-protected PGP key pair // setup Zenypass Vault // source sequence of Account instances.mapaccounts.newAccountobj.dodebug'zp-vault-example:account:'.share.observeOnScheduler.asap // hot Observable with isolation of subscriptions // persist source Account sequence to accounts vault// and extract _id properties of persisted instances.letaccounts.write.dodebug'zp-vault-example:write:'.map.dodebug'zp-vault-example:ref:'.share.observeOnScheduler.asap // read Account sequence from accounts vaultref$.letaccounts.read.forEachdebug'zp-vault-example:read:'.thendebug'zp-vault-example:read:done:'.catchdebug'zp-vault-example:read:error:'.thendb.destroy.thendebug'zp-vault-example:db-destroy:done'.catchdebug'zp-vault-example:db-destroy:error:'
the files of this example are available in this repository.
view a live version of this example in your browser console, or clone this repository and run the following commands from a terminal:
npm installnpm run example
API v0.2 experimental
ES5
and Typescript
compatible.
coded in Typescript 2
, transpiled to ES5
.
for a detailed specification of the API,
run the unit tests in your browser.
CONTRIBUTING
see the contribution guidelines
LICENSE
Copyright 2017 Stéphane M. Catala
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and Limitations under the License.