diff -r 6b3523f81f42 -r 26744ad37953 cubicweb/crypto.py --- a/cubicweb/crypto.py Fri Apr 05 17:21:14 2019 +0200 +++ b/cubicweb/crypto.py Fri Apr 05 17:58:19 2019 +0200 @@ -19,8 +19,7 @@ from base64 import b64encode, b64decode - -from six.moves import cPickle as pickle +import pickle from Crypto.Cipher import Blowfish @@ -38,7 +37,7 @@ string = pickle.dumps(data) string = string + '*' * (8 - len(string) % 8) string = b64encode(_cypherer(seed).encrypt(string)) - return unicode(string) + return str(string) def decrypt(string, seed):