login about faq

I have short strings that I receive from another Web app that are encrypted with RSA-2048. The keypairs were generated on a CentOS server like this:

ssh-keygen -t rsa -f thekey -N '' -b 2048
cat thekey > ../priv.pem
ssh-keygen -f thekey.pub -e -m pem > ../pub.pem

Can your RSA library use this private key to decrypt strings encrypted using the public key above?

As an example, I encrypted the string "20052829374" using the public key and base64 encoded it (attached) and need to be able to decrypt it using the attached private key from C#.

If you have a code sample, it would be great.

asked Jul 14 at 12:55

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:

×47
×13
×7
×4

Asked: Jul 14 at 12:55

Seen: 328 times

Last updated: Jul 14 at 12:56

powered by OSQA