EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TElPublicKeyCrypto Example

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
Posted: 07/20/2006 02:19:00
by Gloria Ho (Standard support level)
Joined: 07/20/2006
Posts: 12

I want to do text encryption/decryption with RSA. I find TElPublicKeyCrypto unit but no corresponding sample.
Can anyone kindly teach me how to assign public/secret key, do encryption and decryption?

Thanks a lot! :oops:
Posted: 07/20/2006 02:36:01
by Ken Ivanov (EldoS Corp.)

Unfortunately, SecureBlackbox distribution does not contain such a sample at the moment. However, we are working on it and plan to include it to SecureBlackbox 5 beta.

Please find attached the sample application for VCL edition. Hope it will help you in your investigations.

[ Download ]
Posted: 07/20/2006 03:33:46
by Gloria Ho (Standard support level)
Joined: 07/20/2006
Posts: 12

Thanks your sample.

For TElRSAKeyMaterial.LoadPublic(), what is the format of the file content?
I try a hexstring as below but it raises "invalid public key":

Posted: 07/20/2006 05:36:10
by Ken Ivanov (EldoS Corp.)

This format is not recognized by the TElRSAKeyMaterial. Keys stored in this format should be first converted to the binary form. We have converted the key you specified for you, please find it attached.

[ Download ]
Posted: 07/21/2006 03:26:30
by Gloria Ho (Standard support level)
Joined: 07/20/2006
Posts: 12

Besides LoadPublic() and LoadSecret(), is there any API to load keys with modulus and exponents?
Posted: 07/21/2006 03:44:15
by Ken Ivanov (EldoS Corp.)

We have not implemented loading keys from raw modulus and exponent values, since these values are usually stored together as BLOBs. LoadPublic() and LoadSecret() work with different formats of public and private key BLOBs.
Posted: 07/28/2006 03:50:55
by Gloria Ho (Standard support level)
Joined: 07/20/2006
Posts: 12

Can I know how to convert the hex string into binary form? :?:
And is it the only way to load publickey?
Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.



Topic viewed 4690 times

Number of guests: 2, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!