| | |
i need help to encrypt characters
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2006
Posts: 1
Reputation:
Solved Threads: 0
Broken from here.
I Have quite the same probem . But I'm block at this point :
I Have quite the same probem . But I'm block at this point :
c Syntax (Toggle Plain Text)
#include<iostream> using std::cout; using std::endl; unsignedint uiStringSize = 0; /* prototype fct encrypt */ void encrypt( char * ); /* prototype fct decrypt */ void decrypt( char * ); char i=0 ; int main() { // string to encrypt char string[] = "this is a secret"; uiStringSize= sizeof( string ); int cout << "original string of character : " << string << endl; encrypt( string ); cout << "encrypt string is : " << string << endl; decrypt( string ); cout << "decrypt string is : " << string << endl; return 0; } void encrypt( char e[] ) { /* Here I have to write the function that will encrypt each letter +1 */ for ( i=0; i= uiStringSize; i++) // not sure, miss something } void decrypt( char *ePtr ) { /* decrypt fct */ for ( i=0; i= uiStringSize; i++) // ...... }
Last edited by WolfPack; Nov 9th, 2006 at 12:01 am. Reason: Added old thread link and changed the heading. Also added [CODE=C][/CODE] tags.
![]() |
Similar Threads
- encrypt and decrypt query string (VB.NET)
- Md5 - Wtf? (Computer Science)
- Very basic de/encrypt program (Python)
- i need help to convert characters (C)
- Need help to encrypt and decrypt password in VB (Visual Basic 4 / 5 / 6)
- Need help for simple program, don't have a clue about C (C)
Other Threads in the C++ Forum
- Previous Thread: Stupid question(using class object)
- Next Thread: Can't find Syntax Error
| Thread Tools | Search this Thread |
api application array arrays based beginner binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg simple sorting string strings temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






