EldoS | Feel safer!

Software components for data protection, secure storage and transfer

PKCS#5 / PBKDF2 samples?

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#26266
Posted: 09/02/2013 11:11:19
by Stephane Grobety (Priority Standard support level)
Joined: 04/18/2006
Posts: 170

Hello,

I'm rebuilding some of my internal libraries used to protect character strings using a dual keys system.

When I checked the SBB PKI samples, I noticed that the "SymmetricEncryption" sample specify that it should never be used in real life due to the fact that it uses a null-IV (makes sense) and that we should check PKCS#5 instead.

Now, after going through the PKCS#5 documentation, I was wondering if there was already some sample implementation available in SBB. A simple grep search and site search turned unsuccessful: is there such a sample available somewhere ?

Thanks
#26267
Posted: 09/02/2013 12:21:15
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

Hi. There is no sample, but there is a class TElPKCS5PBE (in SBPKCS5 unit), which should do what you need. For PBKDF2 you should create it with UseNewVersion = true, and call DeriveKey function.
#26271
Posted: 09/03/2013 00:29:34
by Vsevolod Ievgiienko (EldoS Corp.)

You can also use TElSymmetricKeyMaterial.DeriveKey method. Its public (SBPKCS5 unit is not) and uses PKCS#5 internally to derive keys.
#26273
Posted: 09/03/2013 01:38:45
by Stephane Grobety (Priority Standard support level)
Joined: 04/18/2006
Posts: 170

Thank you both: I'll look into both option.

Reply

Statistics

Topic viewed 873 times

Number of guests: 1, 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!