I need to generate a Key from a string, such that I can always create the same key from the same string. (Specifically a Key object, so that I can use it to create a Cipher in turn to create a SealedObject)
Is this possible in Java, and what class/method combination should I be looking at to do so?
For AES encryption:
Similarly for the deprecated PBKDF1 and insecure DES for communicating with legacy systems or learning purposes:
Note that the iteration count is too low as well in the last example.