Creating a key based on a string

Hi all,

I have to create, using the java packages, a secret symmetric key with algorithms such as AES or DESEDE.

I want to create the key based on a random string I create (This is not the string I encode or decode, this is a string which should characterize the key itself!!).

How can I do this using java code? Somebody has an example?

Thanks,

Amr.

[387 byte] By [AmrMoosa] at [2007-10-3 11:47:25]
# 1
Google for Password/Passphrase Based Encryption (PBE) .
sabre150a at 2007-7-15 14:20:24 > top of Java-index,Security,Cryptography...
# 2
Example (using blowfish) here... http://www.java-answers.com/index.php?topic=42.0
SteveNaivea at 2007-7-15 14:20:24 > top of Java-index,Security,Cryptography...