What algorithm can I use for creating an encryption program in Java? What if I want to use the same key for encrypting and decrypting?
Example: I type Hello world
and use the key guy
, so the words change into xgdsts@dtoll
. If I want to decrypt it, I have to use the same key(guy
) so it'll become hello world
again