1
mirror of https://github.com/hashcat/hashcat synced 2025-03-19 06:14:22 +01:00
hashcat/tools/sqlcipher2hashcat.py
2020-10-26 23:07:30 +00:00

8 lines
209 B
Python

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())