Closed snowman closed 1 year ago
使用IMEI: 1234567890ABCDEF
(大写)
#!/usr/bin/env python
import hashlib
uin = "2009066962"
IMEI = "1234567890ABCDEF"
hash_output = hashlib.md5((IMEI+uin).encode()).hexdigest()[:7]
print(
"""
$ sqlcipher EnMicroMsg.db
pragma key = '{}';
pragma cipher_use_hmac = off;
pragma kdf_iter = 4000;
pragma cipher_page_size = 1024;
pragma cipher_hmac_algorithm = HMAC_SHA1;
pragma cipher_kdf_algorithm = PBKDF2_HMAC_SHA1;
ATTACH DATABASE 'plaintext.db' AS plaintext KEY '';
SELECT sqlcipher_export('plaintext');
detach database plaintext;
""".format(hash_output.lower()))