mirror of https://github.com/certd/certd
perf: 支持新版本LeCDN
parent
9f0ee219d0
commit
44d43f45cb
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue