Skip to content

Commit 75db7b0

Browse files
fix: making sure legacy keys still work
1 parent 60d8efa commit 75db7b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/safeDoc.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { codecs } from "@/utils/codecs";
99
import { uniqueRequests } from "@/utils/requests";
1010
import { passwordGenerators } from "./password-generators";
1111
import { autoLru } from "./lru";
12+
import { getPossibleWordsPassword } from "./crypto";
1213

1314
export {
1415
createDocCodec,
@@ -102,6 +103,7 @@ export function getPossibleDocKey(input: string): string | undefined {
102103
return key;
103104
}
104105
}
106+
return getPossibleWordsPassword(input, 38);
105107
}
106108

107109
export interface ParsedDocument<

0 commit comments

Comments
 (0)