@pluto-encrypted/indexdb
v2.0.1
Published
Secure Encrypted IndexDB storage for @pluto-encrypted/database
Downloads
58
Readme
@pluto-encrypted/indexdb
This package contains a RXDB compatible wrapper over IndexDB and can be used as database engine inside @pluto-encrypted package with secure database encryption.
Documentation
How to use
Creating a IndexDB compatible storage is very simple.
import IndexDB from "@pluto-encrypted/indexdb";
import { Database } from "@pluto-encrypted/database";
//default password must be 32 bytes long
const defaultPassword = new Uint8Array(32).fill(1);
const database = db = await Database.createEncrypted(
{
name: `my-db`,
encryptionKey: defaultPassword,
storage: IndexDB,
}
);
QA & Documentation
| Statements | Branches | Functions | Lines | | --------------------------- | ----------------------- | ------------------------- | ----------------- | | | | | |