Marmot-TS
    Preparing search index...

    Wrapper around a GenericKeyValueStore that encrypts and decrypts data using a password. WARNING: THIS IS NOT SECURE AND SHOULD NOT BE USED IN PRODUCTION. IT IS ONLY FOR DEMONSTRATION PURPOSES.

    Implements

    Index
    • Verify if a password can decrypt stored data

      Parameters

      • password: string
      • testKey: string = TEST_KEY

      Returns Promise<boolean>

    • Get an item from the store

      Parameters

      • key: string
      • encryptionKey: Uint8Array<ArrayBufferLike> | null = ...

      Returns Promise<Uint8Array<ArrayBufferLike> | null>

    • Set an item in the store

      Parameters

      • key: string
      • value: Uint8Array
      • encryptionKey: Uint8Array<ArrayBufferLike> | null = ...

      Returns Promise<Uint8Array<ArrayBufferLike>>