摘要
本設計采用Microsoft Visual C++ 6.0 作為開發工具,并使用MFC Application Framework 作為軟件的基本架構,采用C++作為算法設計語言。在加密器設計中,首先采用替換的方法將初始密鑰變為128位的定長密鑰,然后從文件中逐個獲取字節與轉換后密鑰進行異或運算,最后使用初始密鑰進行單表代換從而實現加密。而用初始密鑰進行逆代換,并用轉換后密鑰與密文進行異或運算,便實現了解密。基于這個思想,本加密軟件實現的主要功能包含:對包括文檔、圖片、音頻、視頻在內的單個文件進行加密和解密,對加密的文件進行備份等。
關鍵詞:加密 解密 密鑰 代換 異或
Abstract
The design uses Microsoft Visual C + + 6.0 as exploit tool, and use the MFC Application Framework as the basic structure of the software, using C + + as an algorithm design language. In the design of encryption, replacement used to change the initial key into fixed-length key of 128-bit at first. Then we get file-by-byte to do XOR computation with converted key. Finally, the use of the initial key to do single table substitution, thus we can achieve encryption. And, we use the same way but reversed operations to achieve a decryption. Based on this idea, the encryption software achieved the main functions that encrypt and decrypt any single files include documents, images, audio, and video. Also, it achieved backup on files which will be encrypted and so on.