updates
This commit is contained in:
@@ -5,7 +5,6 @@ import {
|
||||
resolveFilename,
|
||||
} from "https://global.hatter.ink/script/get/@10/deno-commons-mod.ts";
|
||||
import {getRandomValues} from "node:crypto";
|
||||
import {assertEquals} from "jsr:@std/assert";
|
||||
|
||||
const COMMONS_LOCAL_ENCRYPT_TINY_ENCRYPT_MASTER_KEY_FILE = resolveFilename(
|
||||
"~/.cache/commons-local-encrypt-tiny-encrypt-master-key",
|
||||
@@ -105,12 +104,3 @@ function randomNonce(): ArrayBufferLike {
|
||||
getRandomValues(buffer);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
Deno.test("teEncryptDecrypt", async () => {
|
||||
assertEquals(
|
||||
"hello world",
|
||||
await teDecryptToString(
|
||||
await teEncrypt("hello world"),
|
||||
),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user