We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4a9e1f commit 7043ea4Copy full SHA for 7043ea4
tests/index.test.ts
@@ -58,7 +58,9 @@ describe("Phase", () => {
58
expect(segments[4]).toBe(tag);
59
// Check if the one-time public key and ciphertext are valid hex strings
60
expect(segments[2]).toMatch(/^[0-9a-f]+$/);
61
- expect(segments[3]).toMatch(/^[0-9a-f]+$/);
+ expect(segments[3]).toMatch(
62
+ /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/
63
+ );
64
});
65
66
test("Check if Phase encrypt always produces ciphertexts (ph:*) of the same length for the same plaintext", async () => {
0 commit comments