k,
I understand what you said but It stil won't work for me???
Here is my decrypt code.
Code:#include <iostream.h> #include <stdlib.h> #include <fstream.h> int main() { char a[502]; char b[502]; char c[502]; ofstream a_file("unencrypt.txt"); ifstream b_file("encrypt1.txt"); cout<<"\n\t\t*******Your Encrypted Text***********"; b_file>>c; cout<<c; for(int x=0; x<502; x++) { a[x]=b[x]^c[x]; cout<<a; a_file<<a; } a_file.close(); b_file.close(); cout<<"\n\n Well Thats Your Files. The Unencrypted\ntext will be in a txt file\named unencrypt.txt"; system("PAUSE"); return 0;}
And it still gives me a bunch of gibbity gork text (which i know is encrypted) I want it to output the text that was input into another program and encrypted to a text file??????
here is my encrytion source????
Code:#include <iostream.h> #include <stdlib.h> #include <fstream> int main() { char a[502]; char out[502]; char c[502]; char b[20]="DgFGH51ja8Md-klagf1"; ofstream a_file("encrypt1.txt"); cout<<"\n\n\t\t********Please Input Less Then 500 Chars*********\n\n"; cin>>a; cout<<"\n\n\t\t ***********This Is Your Encoded Text*************** \n\n"; for(int x=0; x<502; x++) { c[x]=a[x]^b[x]; cout<<c[x]; a_file<<c[x]; } cout<<"\n\nWell Thats It. Encrypted Text Will Be Written In A 'encrypt.txt' file\n\n"; a_file.close(); system("PAUSE"); return 0; }
Please can you help me???????
Thanx
Kas



LinkBack URL
About LinkBacks


