Zufälligen String erzeugen
import itertools import os import string def random_string(size = 32): chars = set(string.ascii_letters + string.digits) charGen = (c for c in itertools.imap(os.urandom, itertools.repeat(1)) if c in chars) return "".join(itertools.islice(charGen, None, size))