Skip to content

Instantly share code, notes, and snippets.

@sautin
sautin / huaiwei-unlock.py
Created July 3, 2020 08:09 — forked from DonnchaC/huaiwei-unlock.py
Huaiwei unlock code generator - Based on the disassembler generated C code in https://github.com/forth32/huaweicalc
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import hashlib
import argparse
import binascii
import struct
def encrypt_v1(imei, key):