simple-hash_1.py 139 B

1234
  1. def gen_salt (size = 10):
  2. chars = string.ascii_letters + string.punctuation
  3. return ''.join(random.choice(chars) for x in range(size))