EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TElPublicKeyCrypto Example

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
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 (Team)

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 (Team)

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 (Team)

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: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.



Topic viewed 5111 times

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


Back to top

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

Got it!