login about faq

Hi,, i've been trying to use the encryption and decryption methods of RSA (in C++ Builder XE3) to encrypt and decrypt strings entered by the user, but the methods only work on constant strings, i've tried to do the following:

void __fastcall TForm1::Button1Click(TObject *Sender) {String mn= Edit1->Text; EncryptDecryptString(mn);}

void EncryptDecryptString(String mn) { ..... const char * plainText= AnsiString(mn).c_str(); .....} But still, it doesn't work! Need help please :)

asked Feb 11 '13 at 06:10

rania's gravatar image


I don't use C++, so I can't be of much help, but at a minimum you should:

1) Make sure that you are using the latest version of the library (9.4.0)
2) Post the contents of the LastErrorText property
3) Describe what "still doesn't work" means: Are you getting any error message, or incorrectly decrypted results, or something else?

(Feb 11 '13 at 12:20) jpbro ♦

There is not enough information here to understand the cause of the problem. To get a better response, the problem needs to be communicated in a better way.


answered Feb 18 '13 at 08:05

chilkat's gravatar image

chilkat ♦♦

Your answer
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 11 '13 at 06:10

Seen: 2,666 times

Last updated: Feb 18 '13 at 08:05

powered by OSQA