forked from RobertRautenbach/Open-Source-Battle-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
decryptor.py
32 lines (22 loc) · 773 Bytes
/
decryptor.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- coding: utf-8 -*-
# Module : decrypt.py
# Author : bssthu
# Project : pysqlsimplecipher
# Creation date : 2016-06-03
# Description :
#
import sys
from pysqlsimplecipher import decryptor
def usage():
print('Usage: python decrypt.py encrypted.db password output.db')
def main(p = '9bf9c6ed9d537c399a6c4513e92ab24717e1a488381e3338593abd923fc8a13b'):
password = bytearray(p.encode('utf8'))
if p == '9bf9c6ed9d537c399a6c4513e92ab24717e1a488381e3338593abd923fc8a13b':
filename_in = 'dataenc_glb.db'
filename_out = 'glb.db'
else:
filename_in = 'dataenc_jp.db'
filename_out = 'jp.db'
decryptor.decrypt_file(filename_in, password, filename_out)
if __name__ == '__main__':
main()