login about faq


I want to Encrypt the string which user enters during the run time. I don't want to encrypt the default string as given below. Can someone help me with this?

const char * encStr; cout << "!!!!!AES Encryption & Decryption!!!!!" << endl; encStr = crypt.encryptStringENC("The quick brown fox jumps over the lazy dog."); cout << endl; cout << "ENCRYPTED message: " << endl; printf("%sn",encStr);

//  Now decrypt:
const char * decStr;
decStr = crypt.decryptStringENC(encStr);
cout << endl;
cout << "DECRYPTED message: " << endl;

asked Feb 14 '14 at 17:05

Vinay's gravatar image


Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Feb 14 '14 at 17:05

Seen: 553 times

Last updated: Feb 14 '14 at 17:05

powered by OSQA