Source code for ciphers.cipher_utils
#! /usr/bin/env python3
import string
import random
[docs]def gen_random_secret(secret_length: int):
return "".join([random.choice(string.printable[:-6]) for i in range(secret_length)])
def _sanitize_attr(generic_attrs):
return filter(lambda method: method[0] != "_",
generic_attrs)