forked from hikmet4434/winninghunter
Initial WinningHunter MVP
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import crypto from "crypto";
|
||||
|
||||
export function randomToken(bytes = 32) {
|
||||
return crypto.randomBytes(bytes).toString("base64url");
|
||||
}
|
||||
|
||||
export function sha256(input: string) {
|
||||
return crypto.createHash("sha256").update(input).digest("hex");
|
||||
}
|
||||
Reference in New Issue
Block a user