c語言輸入加密數字貨幣眾籌交易平台
1. C語言輸入密碼將其加密怎麼弄
int
main()
{
c1=
getchar();
:
:
c6=
getchar();
c1=c1+20;
:
c6=c6+20;
putchar(c1);
:
putchar(c6);
}
程序大概這個樣子,有什麼問題再追問,手機碼字還有這破輸入法,寫得很難受
2. 用c語言加密,輸入a,加密後輸出1,輸入b,加密後輸出2,等等,的加密程序,再幫忙寫一個解密文的程序,謝謝
char key = 0xab;
void encode(char *s, int len)
{
char ch = 0;
for(int i=0;i<len;i++)
{
*s = *s ^key ^ch;
ch = *s;
s++;
}
}
3. 用C語言編程:某個公司利用報文傳遞數據,採用密鑰加密與解密.
#include <stdio.h>
main()
{
char s[100],a[50];
int i=0,j=0;
char k;
clrscr();
printf("enter a string:\n");
gets(s);
printf("enter K:\n");
i=strlen(s);
scanf("%c",&k);
while (s[i])
{
if (s[i]>='a'&&s[i]<='z'||s[i]>='A'&&s[i]<='Z')
a[j++]=(s[i]+k)%10;
i--;
}
printf("the password is:\n");
puts(a);
}
4. c語言編程題,電文加密
void mian() 拼錯
5. 做個加密數字貨幣,幣種加交易平台的,去哪裡找公司做,要做的好點的
做平台加幣的團隊或者公司是非常多的,因為現在的幣已經開始泛濫了,小的交易平台多如牛毛,但這些幣能存活多久真是一個非常大的問題,基本上都是上線兩天上漲,隨後就是一路狂跌,這基本上是一個千古不變的規律了。和比特幣、瑞泰幣、萊特幣這些主流的數字貨幣即使價格下跌了,仍舊有回升的那一天不一樣。
6. (在線等)求用c語言調用linux系統自帶加密演算法實現加密的程序代碼,要完整的
Linux自帶的加密玩意多呢,看你用哪個,用哪個就去官網看他的handbook
7. C語言程序題(加密解密)
#include<stdio.h>
#include<ctype.h>
voidjiami(char*s,intn)
{for(;*s;s++)
if(isalpha(*s))
*s=*s%32+n>25?*s+n-26:*s+n;
}
voidjiemi(char*s,intn)
{for(;*s;s++)
if(isalpha(*s))
*s=*s%32-n<1?*s+26-n:*s-n;
}
intmain()
{chars[200];
intn;
gets(s);
scanf("%d",&n);
jiami(s,n);
puts(s);
jiemi(s,n);
puts(s);
return0;
}
8. 如何搭建一個數字貨幣交易平台
國內還沒有交易平台這塊,法律不保護,就算你建立成功了,估計別人也不敢用,建議你還是先借用國外的平台吧
9. C語言寫一個線路加密法或叫換位加密演算法
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
constintMAXSIZE=100;
char*encrypt(char*essay){
inti,j,n,u,v,m,len=strlen(essay);
char*result;
m=n=(int)sqrt(len);
if(m*m<len)++n;
result=(char*)malloc(m*n*sizeof(char)+1);
for(i=0;i<m;++i){
for(j=0;j<n;++j){
u=n*i+j;
v=m*j+i;
if(u<len)result[v]=essay[u];
elseresult[v]='';
}
}
result[m*n]=0;
returnresult;
}
intmain(){
chars[MAXSIZE],*u;
printf("輸入明文: ");
fgets(s,MAXSIZE,stdin);
s[strlen(s)-1]=0;//去除尾部的
u=encrypt(s);
printf("密文是: %s ",u);
free(u);
return0;
}
10. c語言實現密碼加密
unsignedchar*encrypt(unsignedchar*psw,intenc){
intsum=0,i;
if(enc){
for(i=0;i<6;i++){
psw[i]-=15;
sum+=psw[i];
}
psw[6]=(unsignedchar)sum;
psw[7]=0;
}
else{
for(i=0;i<6;i++){
sum+=psw[i];
psw[i]+=15;
}
if((unsignedchar)sum!=psw[6]){
printf("Badpassword
");
psw[0]=0;
returnpsw;
}
else{
psw[6]=0;
}
}
for(i=0;i<3;i++){
unsignedchart=psw[i];
psw[i]=psw[5-i];
psw[5-i]=t;
}
returnpsw;
}
intmain()
{
unsignedcharpsw[128];
scanf("%s",psw);
printf("encodeto:%s
",encrypt(psw,1));
printf("decodeto:%s
",encrypt(psw,0));
return0;
}
