Skip to content

Commit e3f50f1

Browse files
committed
Made string length shorter, no need for 3 chars
1 parent 73760a6 commit e3f50f1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

jwt/generate_jwt.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ def trailing_json_as_base64() -> Generator:
3838
if json_type == JSONTypes.STRING:
3939
for c in range(0x01, 0xf4):
4040
for d in range(0x01, 0xf4):
41-
for e in range(0x01, 0xf4):
42-
for output in output_trailing_json(chr(c) + chr(d) + chr(e) + '"'):
43-
yield output
41+
for output in output_trailing_json(chr(c) + chr(d) + '"'):
42+
yield output
4443
elif json_type == JSONTypes.NUMBER:
4544
for c in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'e', '.', '-', ' ', "\t", ':']:
4645
for d in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'e', '.', '-', ' ', "\t", ':']:

0 commit comments

Comments
 (0)