C ++ ENCRYPTION(如何加密文本) [英] C++ ENCRYPTION (how to encrypt a text)

查看:89
本文介绍了C ++ ENCRYPTION(如何加密文本)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的加密问题出了问题...

你能帮我解决这个问题......我是这个c ++程序的新手...


i有这种扩展加密方法。你将在原始text..example>>>>之间添加一个字符。 josh ..这可能是>>>> jxoxsxhx ......就像那样...


我的程序是这样的


main()

{

char string [10],count;

int x,y;


cout<<" ENTER TEXT: " ;;

cin>> string;

count = strlen(string);


for(x = 0; x< count; x ++)

cout<< string [x]<< string [2];


//如果我要输入JOSH如果我输入jupi,输出将是JSOSSSHS

//输出将是jpupppip


getche();

}




//我需要做的是将输出存储在另一个数组中。

例子。 array []将等于上面程序中的cout

string [x]和string [2] ...>>>>>阵列[X] ="字符串[X]"和string [2]


我将如何做到这一点?.....

我将如何做?

请帮助大家..

解决方案

你可以试试像

展开 | 选择 | Wrap | 行号

这个剂量看起来是加密的,因为你的原始字符与新添加的字符保持一致。

尝试使用Blow-Fish加密字符串,并且可以使用吹鱼网。


Raghu



你可以试试像

展开 | 选择 | Wrap | 行号


i got a problem wtih my encryption...
would you be kind to help me with this...i''m new to this c++ programing...

i have this expansion encryption method..where you will add a char in between the original text..example >>>>. josh..this could be >>>> jxoxsxhx...like that...

my program goes like this

main()
{
char string[10],count;
int x,y;

cout<<"ENTER TEXT:";
cin>>string;
count=strlen(string);

for(x=0;x<count;x++)

cout<<string[x]<<string[2];

//if i''ll enter "JOSH" the output would be "JSOSSSHS"
//if i''ll enter "jupi" the output would be "jpupppip"

getche();
}



//what i need to do is to store the output in another array.
example. array[] will be equal to the cout in the program above which is
string[x] and string[2]...>>>>> array[x]="string[x]" and "string[2]"

how will i do that?.....
how will i do it?
please help everyone..

解决方案

you could try Something like

Expand|Select|Wrap|Line Numbers


This dosent look encryption as your original characters remains as it is with newly added characters.
Try using Blow-Fish for encrypting the string and the blow-fish is available on the net.

Raghu


you could try Something like

Expand|Select|Wrap|Line Numbers


这篇关于C ++ ENCRYPTION(如何加密文本)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆