I need to protect a sequence of bytes with cryptography and I will need to recover the data later.
I want to use a key/password to encrypt and decrypt the data.
I am using Java. How do I encrypt and decrypt a string with a key or password in Java?
Thanks.
Edit: The method cannot be slow.
I hope this helps you get a general idea. This one is Symmetric cryptography.