XOR-based fast fake decryption. Reverses mockEncrypt.
Hex-encoded 256-bit key.
Hex-encoded "ciphertext" from mockEncrypt.
Decrypted bytes.
import { mockEncrypt, mockDecrypt, TEST_KEYS } from "@sebastienrousseau/crypto-testing";const ct = mockEncrypt(TEST_KEYS.aes256, "hello");const pt = mockDecrypt(TEST_KEYS.aes256, ct); Copy
import { mockEncrypt, mockDecrypt, TEST_KEYS } from "@sebastienrousseau/crypto-testing";const ct = mockEncrypt(TEST_KEYS.aes256, "hello");const pt = mockDecrypt(TEST_KEYS.aes256, ct);
XOR-based fast fake decryption. Reverses mockEncrypt.