EldoS | Feel safer!

Software components for data protection, secure storage and transfer

PKCS#5 / PBKDF2 samples?

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
Posted: 09/02/2013 11:11:19
by Stephane Grobety (Priority Standard support level)
Joined: 04/18/2006
Posts: 173


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 ?

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.
Posted: 09/03/2013 00:29:34
by Vsevolod Ievgiienko (Team)

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

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



Topic viewed 966 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!