文件名称:aes
- 所属分类:
- 加密解密
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 280kb
- 下载次数:
- 0次
- 提 供 者:
- f**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
AES算法,实现对文件加密。包含密码学课程报告
class CRijndael
{
private:
int Nk,Nr,round
long Total_Round,Cur_Round
char *SourceFileName,*TargetFileName
CString source,*target,save
CFile Source,Target
byte (* State)[4],*w[4],*key[4]
public:
CString ErrorMessage
CRijndael()
virtual ~CRijndael()
bool EncrypFile()
bool DecrypFile()
CString DecrypStr()
CString EncrypStr()
bool SetFileName(CString SFileName,CString TFileName)
bool SetString(CString sour,CString &targ)
bool SetVariable(int k,int r,CString skey)
int GetCurPos()
private:
void SubBytes()
void ShiftRows()
void MixColumns()
byte Multi(byte a,byte b)
void AddRoundKey()
void KeyExpansion()
void InvShiftRows()
void InvSubBytes()
void InvMixColumns()
void Encryption()
void Decryption()
} -AES algorithm to realize the files are encrypted. Course report contains the password 。
class CRijndael {private: int Nk, Nr, round long Total_Round, Cur_Round char* SourceFileName,* TargetFileName CString source,* target, save CFile Source, Target byte (* State) [4] ,* w [4],* key [4] public: CString ErrorMessage CRijndael () virtual ~ CRijndael () bool EncrypFile () bool DecrypFile () CString DecrypStr () CString EncrypStr () bool SetFileName (CString SFileName, CString TFileName) bool SetString (CString sour, CString & targ) bool SetVariable (int k, int r, CString skey) int GetCurPos () private: void SubBytes () void ShiftRows () void MixColumns () byte Multi (byte a, byte b) void AddRoundKey () void KeyExpansion () void InvShiftRows () void InvSubBytes () void InvMixColumns () void Encryption () void Decryption () }
class CRijndael
{
private:
int Nk,Nr,round
long Total_Round,Cur_Round
char *SourceFileName,*TargetFileName
CString source,*target,save
CFile Source,Target
byte (* State)[4],*w[4],*key[4]
public:
CString ErrorMessage
CRijndael()
virtual ~CRijndael()
bool EncrypFile()
bool DecrypFile()
CString DecrypStr()
CString EncrypStr()
bool SetFileName(CString SFileName,CString TFileName)
bool SetString(CString sour,CString &targ)
bool SetVariable(int k,int r,CString skey)
int GetCurPos()
private:
void SubBytes()
void ShiftRows()
void MixColumns()
byte Multi(byte a,byte b)
void AddRoundKey()
void KeyExpansion()
void InvShiftRows()
void InvSubBytes()
void InvMixColumns()
void Encryption()
void Decryption()
} -AES algorithm to realize the files are encrypted. Course report contains the password 。
class CRijndael {private: int Nk, Nr, round long Total_Round, Cur_Round char* SourceFileName,* TargetFileName CString source,* target, save CFile Source, Target byte (* State) [4] ,* w [4],* key [4] public: CString ErrorMessage CRijndael () virtual ~ CRijndael () bool EncrypFile () bool DecrypFile () CString DecrypStr () CString EncrypStr () bool SetFileName (CString SFileName, CString TFileName) bool SetString (CString sour, CString & targ) bool SetVariable (int k, int r, CString skey) int GetCurPos () private: void SubBytes () void ShiftRows () void MixColumns () byte Multi (byte a, byte b) void AddRoundKey () void KeyExpansion () void InvShiftRows () void InvSubBytes () void InvMixColumns () void Encryption () void Decryption () }
(系统自动生成,下载前可以参看下载内容)
下载文件列表
aes
...\AES
...\...\AES.APS
...\...\AES.clw
...\...\AES.cpp
...\...\AES.dsp
...\...\AES.dsw
...\...\AES.h
...\...\AES.ncb
...\...\AES.opt
...\...\AES.plg
...\...\AES.rc
...\...\AESDlg.cpp
...\...\AESDlg.h
...\...\CRijndael.cpp
...\...\CRijndael.h
...\...\FileDlg.cpp
...\...\FileDlg.h
...\...\MyTab.cpp
...\...\MyTab.h
...\...\ReadMe.txt
...\...\res
...\...\resource.h
...\...\...\AES.ico
...\...\...\AES.rc2
...\...\StdAfx.cpp
...\...\StdAfx.h
...\...\StrDlg.cpp
...\...\StrDlg.h
...\密码学应用与实践课程设计报告.doc
...\AES
...\...\AES.APS
...\...\AES.clw
...\...\AES.cpp
...\...\AES.dsp
...\...\AES.dsw
...\...\AES.h
...\...\AES.ncb
...\...\AES.opt
...\...\AES.plg
...\...\AES.rc
...\...\AESDlg.cpp
...\...\AESDlg.h
...\...\CRijndael.cpp
...\...\CRijndael.h
...\...\FileDlg.cpp
...\...\FileDlg.h
...\...\MyTab.cpp
...\...\MyTab.h
...\...\ReadMe.txt
...\...\res
...\...\resource.h
...\...\...\AES.ico
...\...\...\AES.rc2
...\...\StdAfx.cpp
...\...\StdAfx.h
...\...\StrDlg.cpp
...\...\StrDlg.h
...\密码学应用与实践课程设计报告.doc