1
mirror of https://github.com/hashcat/hashcat synced 2025-03-22 21:14:22 +01:00
hashcat/tools/sqlcipher2hashcat.py
2020-10-29 10:41:33 +00:00

9 lines
232 B
Python

#!/usr/bin/env python3
from base64 import b64encode
import sys
database = open(sys.argv[1], "rb").read(272)
salt = database[:16]
print('sqlcipherv4:256000:' + b64encode(salt).decode() + ':' + b64encode(database[16:272]).decode())