def decrypt_des(key, data): iv = key cipher = DES.new(key, DES.MODE_CBC, iv) return cipher.decrypt(data)