perf: 支持新版本LeCDN

pull/330/head
xiaojunnuo 2025-02-24 18:07:08 +08:00
parent 9f0ee219d0
commit 44d43f45cb
1 changed files with 5 additions and 0 deletions

View File

@ -6,7 +6,12 @@ function md5(data: string) {
function sha256(data: string) {
return crypto.createHash('sha256').update(data).digest('hex');
}
function base64(data: string) {
return Buffer.from(data).toString('base64');
}
export const hashUtils = {
md5,
sha256,
base64,
};