Files
LingChair-V0/server_src/hashlib.js
MoonLeeeaf 5b55ca77ec rebase
2024-05-25 16:34:17 +08:00

15 lines
292 B
JavaScript

/*
* ©2024 满月叶
* Github: MoonLeeeaf
* 哈希辅助类
*/
const crypto = require("crypto")
let apis = {
sha256: (data) => crypto.createHash("sha256").update(data).digest("hex"),
md5: (data) => crypto.createHash("md5").update(data).digest("hex"),
}
module.exports = apis