diff --git a/std/hash/md5.ts b/std/hash/md5.ts index f7e55d9613..0e7017bc95 100644 --- a/std/hash/md5.ts +++ b/std/hash/md5.ts @@ -241,7 +241,7 @@ export class Md5 { for (let i = 0; i < data.length; ++i) { dataString += String.fromCharCode(data[i]); } - return window.btoa(dataString); + return btoa(dataString); } default: throw new Error("md5: invalid format");