BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   How to generate Password-based secret key (http://www.blackberryforums.com/showthread.php?t=13104)

rimzim 08-04-2005 02:39 AM

How to generate Password-based secret key
 
Hello there,

Im writing an application under which I want to use the Password-based encryption with a message digest as MD5.
The equivalent J2SE API for the same is as under:
SecretKeyFactory.getInstance( "PBEWithMD5AndDES");

Can anybody please give me any such API exists on BlackBerry.

I have searched a lot for the same in Package net.rim.device.api.crypto, but failed to find the suitable one.

Please help me in this regard. Or at least suggest me any such API which can generate kety based on the given imput string, may be a password.

Thanx in advance, ealier help would be appreciatable.

RimZim.

sacramentojoe 08-04-2005 03:40 PM

Quote:

Originally Posted by rimzim
Hello there,

Im writing an application under which I want to use the Password-based encryption with a message digest as MD5.
The equivalent J2SE API for the same is as under:
SecretKeyFactory.getInstance( "PBEWithMD5AndDES");

Can anybody please give me any such API exists on BlackBerry.

I have searched a lot for the same in Package net.rim.device.api.crypto, but failed to find the suitable one.

Please help me in this regard. Or at least suggest me any such API which can generate kety based on the given imput string, may be a password.

Thanx in advance, ealier help would be appreciatable.

RimZim.

Look at the JavaDocs under AESEncryptorEngine. There are some good examples as to what you want to do. There is even a Crypto file with examples.


All times are GMT -5. The time now is 07:02 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.