Update passphrase pool of characters

Certain characters when used in various applications cause them to behave
unexpectedly.  Remove these characters to be more generic and support a
wider variety of applications.

Change-Id: I021c4045e52b0637de3353ae6a3acf4709fb698b
This commit is contained in:
Alexander Hughes 2019-03-29 09:27:20 -05:00
parent eb717b4c70
commit bd4eb75f42
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):