Create a test encrypted message using mock XOR encryption.
Optional
Optional plaintext to encrypt. Defaults to the well-known test vector.
Optional hex key. Defaults to TEST_KEYS.aes256.
TEST_KEYS.aes256
import { createTestEncryptedMessage } from "@sebastienrousseau/crypto-testing";const msg = createTestEncryptedMessage("secret data");console.log(msg.ciphertext); // hex-encoded XOR ciphertext Copy
import { createTestEncryptedMessage } from "@sebastienrousseau/crypto-testing";const msg = createTestEncryptedMessage("secret data");console.log(msg.ciphertext); // hex-encoded XOR ciphertext
Create a test encrypted message using mock XOR encryption.