mirror of
https://github.com/imputnet/cobalt.git
synced 2026-01-03 13:31:21 +00:00
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user