Crypto Testing
    Preparing search index...

    Interface TestEncryptedMessage

    A pre-built encrypted message for testing decryption flows.

    import type { TestEncryptedMessage } from "@sebastienrousseau/crypto-testing";

    const msg: TestEncryptedMessage = createTestEncryptedMessage();
    console.log(msg.ciphertext, msg.algorithm);
    interface TestEncryptedMessage {
        key: string;
        plaintext: string;
        ciphertext: string;
        algorithm: "mock-xor";
    }
    Index
    key: string

    The key used for encryption (hex).

    plaintext: string

    The original plaintext.

    ciphertext: string

    The mock-encrypted ciphertext (hex).

    algorithm: "mock-xor"

    Algorithm identifier.