char encrypt(char ch,int n)/*加密函数,把字符向右循环移位n*/ 【程序编程相关:vsftp进阶——虚拟用户配置】
【推荐阅读:用VB将第三方控件打成CAB包(在WEB】{ 【扩展信息:Apache HTTP最新官方配置(中译】 while(ch>=´a´&&ch<=´z´) { return (´a´+(ch-´a´+n)%26); } while(ch>=´a´&&ch<=´z´) { return (´a´+(ch-´a´+n)%26); } return ch; }void menu()/*菜单,1.加密,2.解密,3.暴力破解,密码只能是数字*/
{ clrscr(); printf("\n==============================================================================="); printf("\n1.encrypt the file"); printf("\n2.decrypt the file"); printf("\n3.force decrypt file"); printf("\n4.quit\n"); printf("===============================================================================\n"); printf("please select a item:"); return; }void logo()/*显示版权信息*/
{ printf("\nzhensoft encryption [version:1.0.0]"); printf("\ncopyright (c) 2004 zhensoft corp.\n"); printf("\nhttp://www.zhensoft.com\n"); return; } main() { int i,n; char ch0,ch1; file *in,*out; char infile[20],outfile[20];textbackground(black);
... 下一页