Skip to content

Commit 73760a6

Browse files
committed
Fixed error in script from debugging, was just produced numbers for trailing part
1 parent 441d8ce commit 73760a6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

jwt/generate_jwt.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ def leading_json_as_base64() -> Generator:
3434

3535

3636
def trailing_json_as_base64() -> Generator:
37-
for json_type in [JSONTypes.NUMBER]:
37+
for json_type in JSONTypes:
3838
if json_type == JSONTypes.STRING:
3939
for c in range(0x01, 0xf4):
4040
for d in range(0x01, 0xf4):
41-
for output in output_trailing_json(chr(c) + chr(d) + '"'):
42-
yield output
41+
for e in range(0x01, 0xf4):
42+
for output in output_trailing_json(chr(c) + chr(d) + chr(e) + '"'):
43+
yield output
4344
elif json_type == JSONTypes.NUMBER:
4445
for c in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'e', '.', '-', ' ', "\t", ':']:
4546
for d in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'e', '.', '-', ' ', "\t", ':']:

0 commit comments

Comments
 (0)