def __init__(self, key_str): "" k = str_to_key56(key_str) k = key56_to_key64(k) key_str = '' for i in k: key_str += chr(i & 0xFF) self.des_c_obj = des_c.DES(key_str)
def __init__(self, key_str): "" k = str_to_key56(key_str) k = key56_to_key64(k) key_str = b'' for i in k: key_str += bytes((i & 0xFF, )) self.des_c_obj = des_c.DES(key_str)
def __init__(self, key_str): "" k = str_to_key56(key_str) k = key56_to_key64(k) key_str = utils.lst2str(k) self.des_c_obj = des_c.DES(key_str)