Crypto Edge
    Preparing search index...

    Interface EdgeEncryptOptions

    Options for edge-compatible AES-GCM encryption.

    import type { EdgeEncryptOptions } from "@aspect/crypto-edge";

    const opts: EdgeEncryptOptions = {
    key: new Uint8Array(32),
    plaintext: new TextEncoder().encode("hello"),
    };
    interface EdgeEncryptOptions {
        key: Uint8Array;
        plaintext: Uint8Array;
        aad?: Uint8Array<ArrayBufferLike>;
    }
    Index
    key: Uint8Array

    Raw AES key bytes.

    plaintext: Uint8Array

    Plaintext to encrypt.

    aad?: Uint8Array<ArrayBufferLike>

    Optional additional authenticated data.