lemur/funcs/lemur.py

7 lines
191 B
Python
Raw Normal View History

2020-10-18 22:37:17 +02:00
from secrets import token_bytes as _token_bytes
from base64 import urlsafe_b64encode as _urlsafe_b64encode
2020-10-19 15:15:13 +02:00
2020-10-18 22:37:17 +02:00
def gen_random_base64():
2020-10-19 15:15:13 +02:00
return _urlsafe_b64encode(_token_bytes(32)).decode()