標籤:
發一個自己改的zerobrane版本(啟動中文,快速鍵改成和一樣:F5啟動調試,F9斷點,F10逐過程,F11逐語句,F12跳出函數)
在zerobrane 1.0(2015.3.13)發布的基礎上改的
(1) 加密重要資源,完全用批處理編寫:
@echo offset openssl_exe=C:\GitStack\git\bin\openssl.exeset lua_exe=bin\lua.exeecho 說明:需要預裝MinGW和gow-0.7.0if not exist "%openssl_exe%" ( echo "沒有找到openssl" goto error_end)if not exist "%lua_exe%" ( echo "沒有找到lua" goto error_end)set /p input_filename=請輸入要加密的檔案名稱:if not exist "%input_filename%" ( echo "沒有找到輸入的檔案名稱" goto error_end)echo 開始加密,請稍等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_filename%.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 加密完成,檔案內容:cat %input_filename%.out.txtgoto all_end:error_endecho 加密失敗,please debug the f**k script:all_endpause
運行:
(2)棋譜加密,用lua指令碼編寫,包括遍曆檔案夾和密碼編譯演算法
演算法設計的強度很低,公開金鑰和私密金鑰相同,檔案熵值增加為0,就不公布了。
單純設計一個密碼編譯演算法很容易,但是商用起來,就得考慮方方面面,知易行難吧
windows端加密程式,lua代碼,ZeroBrane調試