Windows-side encryption program, LUA code, Zerobrane debugging

Source: Internet
Author: User

Send a zerobrane version of their own (Start the Chinese, shortcut keys to the same as: F5 start Debugging, F9 breakpoints, F10 step by step, F11 step by step, F12 jump out of the function)

Based on the release of Zerobrane 1.0 (2015.3.13).

(1) Encrypt important resources and write them completely with batch processing:

 @echo offset Openssl_exe=c:\gitstack\git\bin\openssl.exeset lua_exe=bin\ Lua.exeecho Description: Requires pre-installed MINGW and gow-0.7.0if not exist "%openssl_exe%" (echo "did not find OpenSSL" goto error_end) if not exist "%lua_ex E% "(echo" did not find Lua "goto error_end) set/p input_filename= Please enter the file name to encrypt: If not exist"%input_filename% "(echo" did not find the file name entered  "Goto Error_end" echo begins to encrypt, please wait del/f/q%input_filename%.out.txtopenssl enc-e-aes-128-cbc-pass pass:testpassword-in %input_filename%-out%input_filename%.aesecho Encrypt_aes: >%input_filename%.out.txt1openssl base64-in%input_fi Lename%.aes-out%input_filename%.out.txt2cat%input_filename%.out.txt1 >%input_filename%.out.txtcat%input_ Filename%.out.txt2 >>%input_filename%.out.txtdel/f/q%input_filename%.aesdel/f/q%input_filename%. OUT.TXT1DEL/F/q%input_filename%.out.txt2echo Encryption complete, file contents: Cat%input_filename%.out.txtgoto All_end:error_endecho Encryption failed , please debug the f**k script:all_endpause 

Run:

(2) Game encryption, written in Lua script, including traverse folder and encryption algorithm

The strength of the algorithm design is very low, the public key and private key are the same, the file entropy value is increased to 0, it is not published.

It's easy to design a cryptographic algorithm, but for business, you have to consider every aspect, easier.

Windows-side encryption program, LUA code, Zerobrane debugging

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.