Merge "Update passphrase pool of characters"

This commit is contained in:
Zuul 2019-04-05 14:32:08 +00:00 committed by Gerrit Code Review
commit 4ea5ffef24
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ __all__ = ['CryptoString']
class CryptoString(object):
def __init__(self):
self._pool = string.ascii_letters + string.digits + string.punctuation
punctuation = '@#&-+=?'
self._pool = string.ascii_letters + string.digits + punctuation
self._random = random.SystemRandom()
def get_crypto_string(self, length=24):