Skip to content

Instantly share code, notes, and snippets.

@SadPaladin
SadPaladin / dcupdate.py
Created May 2, 2018 13:21
A script to decrypt uboot/kernel/mcu update images used by Allwinner T8-based car radio headunits
#!/usr/bin/env python3
import hashlib
import sys
import tqdm # Used to report progress during decryption
if len(sys.argv) not in (2,3):
print("Usage: dcupdate.py enciphered_file [deciphered_file]")
print("Deciphers images used by Allwinner T8-based car radio headunits")
sys.exit(0)