login about faq

I am trying to use the RSA-512 functions from Delphi (Non ActiveX DLL).

I receive the N key (64 bytes) and the E key (4 bytes) in binary form from a connected device.

I want to import these keys into the rsa object, but don't quite know how to do it.

Id be grateful if someone could point me in the right direction !

asked Jun 20 at 11:41

jg5858's gravatar image

jg5858
1


See this example: https://www.example-code.com/delphiDll/rsa_encryptModExp.asp

For you, it's just a matter of creating a base64 string representation of the N (modulus) and E (exponent). The exponent will very likely always be decimal 65001, which is "AQAB" in base64.

link

answered Jun 20 at 11:51

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

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:

×56
×48

Asked: Jun 20 at 11:41

Seen: 232 times

Last updated: Jun 20 at 11:51

powered by OSQA