使用编程语言(如Java,VC++等)实现DES加密/解密算法的软件系统.

2024-05-14

1. 使用编程语言(如Java,VC++等)实现DES加密/解密算法的软件系统.

要求这么多,你给五百块钱还差不多。以前学习密码学的时候要JAVA做过加密和解密,发现在CSDN上有很多源码,你可以去参考一下。

使用编程语言(如Java,VC++等)实现DES加密/解密算法的软件系统.

2. 用C语言编程恺撒密码加密解密程序

#include #define isletter( c )    ( ((c)>='a'&&(c)='A'&&(c)<='Z') )void Enc( const char *str, char *out, int key ){    int i = 0;     while( str[i] )    {        if ( isletter( str[i] ) )        {            out[i] = str[i] + key;            if ( ! isletter( out[i])  )                out[i] -= 26;        }        else            out[i] = str[i];        i++;    }    out[i] = 0;}void Denc( const char *str, char *out, int key ){    int i=0;    while( str[i] )    {        if ( isletter( str[i] ) )        {            out[i] = str[i] - key;            if ( ! isletter( out[i] ) )                out[i] += 26;        }        else            out[i] = str[i];        i++;    }    out[i] = 0;}int main(){    char  out[100], out2[100];    Enc( "THE QUICK BROWn fox jumps over THE LAZY DOG", out, 3 );    printf( "%s\n", out );    Denc( out, out2, 3 );    printf( "%s\n", out2 );}

3. C语言编程代码加密

例如:简单的移位加密可以这样FILE *fp=fopen("test.txt","r");FILE *fp1=fopen("new.txt","w");while((c=fgetc(fp))!=EOF)fputc(c+1,fp1);//逐个读取全部字符,ASCII值+1并保存到另一个文件然后可以remove("test.txt");//删除文件或者读取new.txt再写回test.txt解密就是ASCII值-1

C语言编程代码加密

4. 用C语言编程实现对键盘输入的英文名句子进行加密

#include
void main()
{
    char str1[256],str2[256],*p,*q;    int x;    gets(str1); p=str1; q=str2;    while ( *p )    { if ( (*p)>='A' && (*p)='a' && (*p)<='z' )        { x=(*p)-'a';             x++; (*q)=x%26+'a'; q++;            x++; (*q)=x%26+'a'; q++;            x++; (*q)=x%26+'a';         }        else (*q)=(*p);        p++; q++;    }    (*q)=0; printf("%s\n",str2);}
}

5. 《骇客学堂》挂马,盗号,写马,挂马,入侵,编程,程序语言、加密视

真的?

《骇客学堂》挂马,盗号,写马,挂马,入侵,编程,程序语言、加密视

6. C语言编程: 文件移位加密与解密。

这样就可以了
#include
void code(char *p,int key)
{
 while(*p!='\0')
 {
  *p=97+(*p-97+key)%26;
  p++;
 }
}
void uncode(char *p,int key)
{
 while(*p!='\0')
 {
  *p=97+(*p-71-key)%26;
  p++;
 }
}
main()
{
 char str[100];
 int n,key;
 printf("输入密匙:");
 scanf("%d",&key); 
 printf("输入1加密,输入2解密:"); 
 scanf("%d",&n);
 printf("输入字符串:"); 
 scanf("%s",str);
 if(n==1)
 {
  code(str,key);
  printf("密文为%s\n",str);
 }
 else if(n==2)
 {
  uncode(str,key);
  printf("原文为%s\n",str);
 }
}

7. 使用编程语言(如Java、VC++等)实现DES加密/解密算法的软件系统 (高分求源代码)

我有VC++的源代码,去年毕业论文就做这个的。想要的话留下个邮箱

使用编程语言(如Java、VC++等)实现DES加密/解密算法的软件系统   (高分求源代码)

8. c语言编程汉字加密

你要知道计算机中的任何字符都是数字编码

汉字也是一样,也是有数字编码的

位运算就是直接操作字符的二进制编码从而打乱编码顺序就实现加密了,然后可以用特定的算法再还原回来

一般用位运算 把文件的内容进行一定算法的位操作就可以了
最新文章
热门文章
推荐阅读