Answers for "python generate id"

5

python generate id

import secrets

secrets.token_urlsafe(16)
# 'DfpKRcWH50lOVjllN4t2ww'
secrets.token_hex(16)
# 'c3696cfb5ca4605a48764a1b14c8096a'
secrets.token_bytes(16)
# b'\xa50\xd1\xdcE\x9d<\x12\x81<\xf4\x8b:?\xce\xfe'
Posted by: Guest on October-26-2021

Python Answers by Framework

Browse Popular Code Answers by Language