This commit is contained in:
MoonLeeeaf
2024-05-25 16:34:17 +08:00
parent 71b5b5b2df
commit 5b55ca77ec
21 changed files with 91 additions and 2025 deletions

View File

@@ -7,10 +7,8 @@
const crypto = require("crypto")
let apis = {
sha256: (data) => crypto.createHash("sha256").update(data).digest("base64"),
md5: (data) => crypto.createHash("md5").update(data).digest("base64"),
sha256hex: (data) => crypto.createHash("sha256").update(data).digest("hex"),
md5hex: (data) => crypto.createHash("md5").update(data).digest("hex"),
sha256: (data) => crypto.createHash("sha256").update(data).digest("hex"),
md5: (data) => crypto.createHash("md5").update(data).digest("hex"),
}
module.exports = apis