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