Browse Source

compatible python3

dev
BreakWa11 9 years ago
parent
commit
44598a070d
  1. 3
      shadowsocks/encrypt.py

3
shadowsocks/encrypt.py

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

Loading…
Cancel
Save