![]() |
| 點圖可放大 |
下載: 點此下載
進入TestAESCipher\Debug\TestAESCipher.exe可直接執行檔案
本專案是使用Visual Studio 2012所開發
因為沒辦法完全顯示程式碼,所以下面我釋放比較重要的部分
部分內容程式碼,請參考下載的附件比較完整
#include "stdafx.h"
#include "stdlib.h"
#include "AES.h"
int main(int argc, char* argv[])
{
printf("請輸入要加密的內容:");
scanf("%s",&str);
printf("請輸入要加密的鑰匙:");
scanf("%s",&key);
AES aes(key);//設定KEY
printf("加密:");
aes.Cipher((void *)str);
printf("解密:");
aes.InvCipher((void *)str,i);
}






沒有留言:
張貼留言
俗話說
凡走過必留下痕跡,凡住過必留下鄰居
凡爬過必留下樓梯,凡來過必留下IP
看過文章之後歡迎留下您寶貴的意見喔!