lemur/funcs/lemur.py

6 lines
203 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
def gen_random_base64():
return base64.urlsafe_b64encode(secrets.token_bytes(32)).decode()