Anders Kaseorg
b7b7475672
python: Use standard secrets module to generate random tokens.
...
There are three functional side effects:
• Correct an insignificant but mathematically offensive bias toward
repeated characters in generate_api_key introduced in commit
47b4283c4b4c70ecde4d3c8de871c90ee2506d87; its entropy is increased
from 190.52864 bits to 190.53428 bits.
• Use the base32 alphabet in confirmation.models.generate_key; its
entropy is reduced from 124.07820 bits to the documented 120 bits, but
now it uses 1 syscall instead of 24.
• Use the base32 alphabet in get_bigbluebutton_url; its entropy is
reduced from 51.69925 bits to 50 bits, but now it uses 1 syscall
instead of 10.
(The base32 alphabet is A-Z 2-7. We could probably replace all of
these with plain secrets.token_urlsafe, since I expect most callers
can handle the full urlsafe_b64 alphabet A-Z a-z 0-9 - _ without
problems.)
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-09-09 15:52:57 -07:00
..
2020-05-01 11:07:53 -07:00
2020-06-11 16:04:12 -07:00
2020-06-11 16:45:32 -07:00
2020-04-09 16:43:22 -07:00
2020-06-11 16:45:32 -07:00
2020-06-11 16:04:12 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-06-10 15:02:09 -07:00
2020-06-11 16:45:32 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-06-11 16:04:12 -07:00
2020-04-09 16:43:22 -07:00
2020-05-01 11:07:53 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-06-11 16:45:32 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-06-11 16:45:32 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-09-02 11:15:41 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-06-11 16:45:32 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-06-11 16:04:12 -07:00
2020-06-11 16:04:12 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-06-11 16:45:32 -07:00
2020-04-29 10:41:20 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-05-01 11:07:53 -07:00
2020-06-11 16:04:12 -07:00
2020-04-09 16:43:22 -07:00
2020-08-11 10:55:12 -07:00
2020-06-11 16:04:12 -07:00
2020-06-11 16:04:12 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-08-11 10:55:12 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-06-11 16:04:12 -07:00
2020-09-03 17:51:09 -07:00
2020-04-09 16:43:22 -07:00
2020-06-11 16:04:12 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-04-22 11:02:32 -07:00
2020-04-29 10:41:20 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-06-11 16:45:32 -07:00
2020-04-09 16:43:22 -07:00
2020-06-14 23:27:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-05-26 23:18:07 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-04-29 10:41:20 -07:00
2020-04-09 16:43:22 -07:00
2020-06-11 16:04:12 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-06-11 16:04:12 -07:00
2020-04-29 10:41:20 -07:00
2020-06-10 15:02:09 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-06-11 16:45:32 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-06-16 23:35:39 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-08-11 10:55:12 -07:00
2020-04-29 10:41:20 -07:00
2020-04-29 10:41:20 -07:00
2020-05-01 11:07:53 -07:00
2020-04-09 16:43:22 -07:00
2020-06-11 16:45:32 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-04-09 16:43:22 -07:00
2020-06-11 16:04:12 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-04-09 16:43:22 -07:00
2020-06-11 16:04:12 -07:00
2020-09-02 11:15:41 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-06-11 16:04:12 -07:00
2020-06-11 16:45:32 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 11:02:34 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-06-11 16:45:32 -07:00
2020-06-11 16:04:12 -07:00
2020-06-11 16:04:12 -07:00
2020-04-09 16:43:22 -07:00
2020-09-03 17:51:09 -07:00
2020-06-11 16:04:12 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-04-09 16:43:22 -07:00
2020-09-03 17:51:09 -07:00
2020-06-11 16:04:12 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 10:41:20 -07:00
2020-06-11 16:45:32 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-06-11 16:45:32 -07:00
2020-04-09 16:43:22 -07:00
2020-04-22 11:02:32 -07:00
2020-04-09 16:43:22 -07:00
2020-04-29 11:02:34 -07:00
2020-06-10 15:02:09 -07:00
2020-04-09 16:43:22 -07:00
2020-04-09 16:43:22 -07:00
2020-09-09 15:52:57 -07:00
2020-06-16 23:35:39 -07:00
2020-06-11 16:45:32 -07:00
2020-06-11 16:45:32 -07:00
2020-06-11 16:45:32 -07:00
2020-04-29 10:41:20 -07:00
2020-04-09 16:43:22 -07:00
2020-06-11 16:45:32 -07:00
2020-04-29 11:02:34 -07:00
2020-06-11 16:45:32 -07:00
2020-04-09 16:43:22 -07:00
2020-06-11 16:45:32 -07:00
2020-04-29 11:02:34 -07:00
2020-04-09 16:02:02 -07:00
2020-06-11 16:45:32 -07:00
2020-04-26 22:13:28 -07:00
2020-04-26 22:39:24 -07:00
2020-06-11 16:45:32 -07:00
2020-09-02 11:15:41 -07:00
2020-04-27 11:29:50 -07:00
2020-04-29 23:11:52 -07:00
2020-05-02 15:09:05 -07:00
2020-06-03 16:39:12 -07:00
2020-06-08 15:23:10 -07:00
2020-06-09 17:29:35 -07:00
2020-08-14 11:22:03 -07:00
2020-08-11 10:25:52 -07:00
2020-06-16 23:35:39 -07:00
2020-06-19 10:07:42 -07:00
2020-06-19 10:07:42 -07:00
2020-06-20 13:15:02 -07:00
2020-06-22 17:08:32 -07:00
2020-06-24 10:33:21 -07:00
2020-06-24 11:39:01 -07:00
2020-06-24 11:39:01 -07:00
2020-07-03 13:08:40 +00:00
2020-07-15 09:42:40 -07:00
2020-07-17 11:15:15 -07:00
2020-07-28 17:18:35 -07:00
2020-09-02 11:15:41 -07:00
2020-08-12 16:47:04 -07:00
2020-08-12 17:26:03 -07:00
2020-09-01 11:24:27 -07:00