(1) Important file encryption
Involves core scenarios, scripts, XML, help notes, picture resources, and so on. First with AES-128-CBC encryption, and then with Base64 encoding for easy transmission. Encryption process:
OpenSSL enc-e-aes-128-cbc-pass pass:mypassword-in a.txt-out A.txt.aes
OpenSSL base64-in a.txt.aes-out a.base64.txt
Decryption process: Java inside has AES-128-CBC algorithm, oneself find can, above the mypassword is not I use the actual password, or this algorithm is not white engage, hehe
(2) Non-essential file encryption
such as game files, the number of more than expected more than 10,000, file importance is not high, the algorithm should be designed to be simple, support symmetric encryption, the same public key and private key, while the file entropy can not be improved, otherwise affect the compression efficiency.
The algorithm is designed by itself, the interface is as follows:
Windows side (implemented with script + batch):
result = Func_encrypt (file_content, My_password);
result = Func_decrypt (file_content, My_password);
Android side: result = Func_decrypt (file_content, My_password);
Welcome any player ID to provide further ideas ~
The encryption algorithm of Swallow go file