Enchantrix/vault/lib/parse/file.test.ts
google-labs-jules[bot] 63721e9811 feat: Add ChaCha20-Poly1305 encryption
This commit introduces ChaCha20-Poly1305 encryption functionality. It includes the following changes:

- A new `chachapoly` package has been added.
- The `chachapoly` package contains `Encrypt` and `Decrypt` functions.
- The functionality is fully tested.
- An `.ideas` directory has been created.
2025-10-30 19:01:08 +00:00

12 lines
388 B
TypeScript

import { assertEquals } from "https://deno.land/std@0.122.0/testing/asserts.ts";
import { EnchantrixParseFile } from "./file.ts";
// Compact form: name and function
//
// where "snider" is the mapping and "r3dinS" is the binary return.
//
Deno.test("IN: Snider OUT: r3dinS", () => {
const x = new EnchantrixParseFile(".dataset/Dont-Panic.webp").load();
assertEquals(x, "r3dinS");
});