最近在看des,便试这用sdk编了个des加密程序,希望各位能够多多指点,谢谢大家了
#include <commdlg.h> 【程序编程相关:用Delphi实现控制IE窗体的大小 —】#include "stdafx.h" 【推荐阅读:关于如何运用网络自己解决问题的参考(个人】
static openfilename ofn; 【扩展信息:squid详细介绍1】
#include <math.h>static handle hfile1,hfile2;char key[16][48];char password[8];bool initkey();
bool ipchange(tchar *source,char *l,char *r);bool _ipchange(tchar *dest,char *l,char *r);bool calclr(char *l,char *r,bool bcodeflag);bool getbit(tchar *szsource,char *array);bool f(tchar *l,tchar *r,int ncount);bool sbox(char *e);bool initofn(hwnd hwnd) /*初始化ofn*/
{ ofn.flags =0; ofn.hinstance =null; ofn.hwndowner =hwnd; ofn.lcustdata =0; ofn.lpfnhook =0; ofn.lpstrcustomfilter =null; ofn.lpstrdefext ="*"; ofn.lpstrfile =null; ofn.lpstrfiletitle =null; ofn.lpstrfilter =text("所有文件(*.*)\0*.*\0\0"); ofn.lpstrinitialdir =null; ofn.lpstrtitle =null; ofn.lptemplatename =null; ofn.lstructsize =sizeof(openfilename); ofn.nfileextension =0; ofn.nfileoffset =0; ofn.nfilterindex =0; ofn.nmaxcustfilter =0; ofn.nmaxfile =max_path; ofn.nmaxfiletitle=max_path; return 1;}bool openfiledialog(tchar *szfilename) /*打开“打开”通用对话框*/
{ szfilename[0]=´\0´; ofn.flags =ofn_hidereadonly; ofn.lpstrfile =szfilename; ofn.lpstrfiletitle =szfilename; return getopenfilename(&ofn);}... 下一页