I\'m interested in creating a very simple, high (cryptographic) quality random password generator. Is there a better way to do this?
import os, random, strin
Base64 let us encode binary data in a human readable/writable mode with no data loss.
import os random_bytes=os.urandom(12) secret=random_bytes.encode("base64")