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

rania
45182228

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.

link

answered Feb 18 '13 at 08:05

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×64
×47
×23
×2

Asked: Feb 11 '13 at 06:10

Seen: 1,750 times

Last updated: Feb 18 '13 at 08:05

powered by OSQA