fix: 修复导入在线插件不生效的bug

This commit is contained in:
xiaojunnuo
2025-05-16 08:38:38 +08:00
parent 76b19a4980
commit fcf8309c23
5 changed files with 98 additions and 38 deletions
@@ -14,9 +14,13 @@ function hmacSha256(data: string, digest: BinaryToTextEncoding = "base64") {
function base64(data: string) {
return Buffer.from(data).toString("base64");
}
function base64Decode(data: string) {
return Buffer.from(data, "base64").toString("utf8");
}
export const hashUtils = {
md5,
sha256,
base64,
base64Decode,
hmacSha256,
};