dokkan-battle-bot/encrypt.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
631 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Module : encrypt.py
# Author : bssthu
# Project : pysqlsimplecipher
# Creation date : 2016-06-03
# Description :
#
import sys
from pysqlsimplecipher import encryptor
def usage():
print('Usage: python encrypt.py plain.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]
encryptor.encrypt_file(filename_in, password, filename_out)
if __name__ == '__main__':
main()