Secure Encrypted InMemory storage for Edge agent SDK
npm install @pluto-encrypted/inmemoryCreating a InMemory compatible storage is very simple.
``typescriptmy-db
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: ,``
encryptionKey: defaultPassword,
storage: InMemory,
}
);