fixes #63, #67, #68, and #71, among other issues
This commit is contained in:
wukko
2023-01-14 00:34:48 +06:00
parent 1a1a4534b7
commit 3b5bf51ba7
19 changed files with 218 additions and 191 deletions

View File

@@ -1,8 +1,5 @@
import { createHmac, randomUUID } from "crypto";
import { createHmac } from "crypto";
export function encrypt(str, salt) {
export function sha256(str, salt) {
return createHmac("sha256", salt).update(str).digest("hex");
}
export function UUID() {
return randomUUID();
}