windows端加密程式,lua代碼,ZeroBrane調試

來源:互聯網
上載者:User

標籤:

發一個自己改的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調試

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.