From bd4eb75f42adbc6ff9a1e03fbab437d29b3e4b0e Mon Sep 17 00:00:00 2001 From: Alexander Hughes Date: Fri, 29 Mar 2019 09:27:20 -0500 Subject: [PATCH] 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 --- pegleg/engine/util/cryptostring.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pegleg/engine/util/cryptostring.py b/pegleg/engine/util/cryptostring.py index aee44209..424c40cf 100644 --- a/pegleg/engine/util/cryptostring.py +++ b/pegleg/engine/util/cryptostring.py @@ -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):