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:
parent
eb717b4c70
commit
bd4eb75f42
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue