1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-03-22 10:25:43 +00:00
hashcat/tools/sqlcipher2hashcat.py
2020-10-26 23:04:42 +00:00

8 lines
207 B
Python

from base64 import b64encode
import sys
database = open(sys.argv[1], "rb").read(272)
salt = database[:16]
print('sqlcipher:256000:' + b64encode(salt).decode() + ':' + b64encode(database[16:272]).decode())