diff options
Diffstat (limited to 'conductor/conductor/common/utils/cipherUtils.py')
-rw-r--r-- | conductor/conductor/common/utils/cipherUtils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/conductor/conductor/common/utils/cipherUtils.py b/conductor/conductor/common/utils/cipherUtils.py index 6ee6c58..21a33b4 100644 --- a/conductor/conductor/common/utils/cipherUtils.py +++ b/conductor/conductor/common/utils/cipherUtils.py @@ -52,7 +52,9 @@ class AESCipher(object): self.bs = 32 if key is None: - key = CONF.auth.appkey.encode() + key = CONF.auth.appkey # ---> python3.8 Code version code + # key= CONF.auth.appkey.encode() ---> Python 2.7 version code + # in Python 3+ key is already a b'' type so no need to encode it again. self.key = hashlib.sha256(key.encode()).digest() |