|
@@ -132,8 +132,7 @@ def decrypt_sph_video(video_path: str, key: int, save_path: str) -> None:
|
|
|
encrypted_data = f.read()
|
|
|
|
|
|
c_data = ffi.new('unsigned char[]', list(encrypted_data))
|
|
|
- print(type(key))
|
|
|
- lib.decrypt(c_data, 2 ** 17, key)
|
|
|
+ lib.decrypt(c_data, 2 ** 17, int(key))
|
|
|
decrypted_data = bytes(ffi.buffer(c_data, len(encrypted_data))[:])
|
|
|
|
|
|
with open(save_path, 'wb') as f:
|