diff --git a/src/index.ts b/src/index.ts index 8c8138d..6a80b00 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,7 +31,10 @@ export function getPathAndParam( export function getSubsetHash(subset: string): string { const subsetChars = [...subset]; const subsetCharsSorted = subsetChars.sort(); - const subsetHash = hash(subsetCharsSorted, { algorithm: "md5" }); + const subsetHash = hash(subsetCharsSorted, { + algorithm: "md5", + encoding: "base64", + }); const truncatedHash = subsetHash.slice(0, 8);