《代碼難讀化》嘅修訂比較

內容刪咗 內容加咗
Dr. Greywolf討論貢獻
Dr. Greywolf討論貢獻
m zap1
第44行:
==技巧==
要做難讀化,軟件工程師有好多技巧可以用,比較簡單嘅有:
*[[死碼 (編程)|死碼]](dead code<!--det1 kuk1-->):指一段碼永遠唔會行得到(例如係[[條件運算式|行嘅條件]]永遠唔會有可能達到;睇下面段[[虛擬碼]])或者就算行咗段碼,段碼嘅 [[output]] 唔會畀個程式嘅任何部份攞嚟用;做代碼難讀化嘅人,有陣時會加少少死碼落段原始碼度,用意係想擾亂嘗試解讀段碼嘅人<ref>Barría, C., Cordero, D., Cubillos, C., & Osses, R. (2016, May). Obfuscation procedure based in dead code insertion into crypter. In ''2016 6th International Conference on Computers Communications and Control'' (ICCCC) (pp. 23-29). IEEE.</ref>。
*:a = 0
*:[[條件陳述式|if]] a > 1000: ''# 如果 a 數值永遠冇可能超過 1000,噉呢個 if 下嘅碼就永世都唔會行。''
第53行:
 
==睇埋==
*[[加密]](encryption):[[密碼學]]成日用嘅一種技巧;簡化講,加密做嘅嘢如下-攞住一段符號,將段符號做轉化,轉化會變咗好似語無倫次噉嘅樣,而且淨係得寫符號嗰一方同埋有權睇串符號嗰一方先至知[[密匙]],知密匙先可以解讀到串符號,最後達致「唔畀任何外人得知串符號講乜」噉嘅效果;[[視像遊戲]]嘅[[遊戲製作|製作過程]],出嗮名成日會同啲遊戲嘅原始碼做加密<ref>Karthik, J., Amritha, P. P., & Sethumadhavan, M. (2020, July). [https://ieeexplore.ieee.org/abstract/document/9225560 Video Game DRM: Analysis and Paradigm Solution]. In ''2020 11th International Conference on Computing, Communication and Networking Technologies (ICCCNT)'' (pp. 1-4). IEEE.</ref>。
*[[惡意程式]](malware):整惡意程式嘅人,好興用代碼難讀化嘅技巧嚟令到自己啲惡意程式避得開[[防毒軟件]]嘅探測<ref>You, I., & Yim, K. (2010, November). Malware obfuscation techniques: A brief survey. In ''2010 International conference on broadband, wireless computing, communication and applications'' (pp. 297-300). IEEE.</ref>。
*[[複製保護]]