compatible python3

This commit is contained in:
BreakWa11 2016-06-21 21:29:34 +08:00
parent 8031337d65
commit 44598a070d

View file

@ -75,7 +75,8 @@ def EVP_BytesToKey(password, key_len, iv_len):
class Encryptor(object): class Encryptor(object):
def __init__(self, key, method): def __init__(self, key, method):
self.key = key self.key = key
self.method = common.to_str(method) method = common.to_str(method)
self.method = method
self.iv = None self.iv = None
self.iv_sent = False self.iv_sent = False
self.cipher_iv = b'' self.cipher_iv = b''