eole-lemur/funcs/lemur.py
2020-10-21 11:58:06 +02:00

7 lines
191 B
Python

from secrets import token_bytes as _token_bytes
from base64 import urlsafe_b64encode as _urlsafe_b64encode
def gen_random_base64():
return _urlsafe_b64encode(_token_bytes(32)).decode()