摘要
本设计采用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.