cubicweb/crypto.py
changeset 12567 26744ad37953
parent 11767 432f87a63057
child 12619 48a010b35af2
--- 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):