The encryption algorithm of Swallow go file

Source: Internet
Author: User
Tags base64 openssl enc

(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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.