cozy-keys-lib

6.0.0 • Public • Published

Cozy-Keys-Libs

This lib allows your cozy to manage a bitwarden vault. It uses and embed the official shared library from bitwarden.

What is this?

This is component of the Cozy Cloud platform and not an component of Bitwarden.

Usage

const instance = 'https://myuser.mycozy.cloud'
vault = WebVaultClient(instance)
await vault.unlock(masterPassword)
await vault.sync()
const all = vault.getAllDecrypted({ type: vault.cipherTypes.Login })

Dev

yarn
yarn setup:submodule
yarn build:jslib

yarn build:keys

Testing in an app

cozy-keys-lib relies on cryptographic APIs that are only enabled on secure locations, such as pages served with https or localhost. This means that running it on http://cozy.tools:8080 will not work.

It may be possible to force your browser to consider this location as secure anyway and enable the crypto APIs. In Chrome for example, go to chrome://flags, find the "Insecure origins treated as secure" section and add http://cozy.tools:8080.

Dependencies (16)

Dev Dependencies (30)

Package Sidebar

Install

npm i cozy-keys-lib

Weekly Downloads

440

Version

6.0.0

License

GPL-3.0

Unpacked Size

4.97 MB

Total Files

1779

Last publish

Collaborators

  • mycozycloud