dokkan-battle-bot/decrypt.py
Pawel Orzech fbc9bde494 Updated a lot
So, there are two things. First one is that I've updated bot on my own. You can use it by using dokkan.py, but there's also BotZone build (2.7..3) which works good too. Just so you know - I DID NOT DO the BotZone one.
2019-11-08 16:16:06 +00:00

33 lines
635 B
Python

#!/usr/bin/env python3
# -*- 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():
# arguments
argv = sys.argv
if len(argv) != 4:
usage()
return
filename_in = argv[1]
password = bytearray(argv[2].encode('utf8'))
filename_out = argv[3]
decryptor.decrypt_file(filename_in, password, filename_out)
if __name__ == '__main__':
main()