@pluto-encrypted/iagon
v0.0.0-beta.18
Published
Secure Encrypted iagon storage for @pluto-encrypted/database
Downloads
24
Readme
@pluto-encrypted/iagon
This package contains a RXDB compatible wrapper over iagon and can be used as database engine inside @pluto-encrypted package with secure database encryption.
Documentation
How to use
Creating a iagon compatible storage is very simple.
import iagon from "@pluto-encrypted/iagon";
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: iagon,
}
);
QA & Documentation
| Statements | Branches | Functions | Lines | | --------------------------- | ----------------------- | ------------------------- | ----------------- | | | | | |