Is there a dead simple native method for encrypting / decrypting a string with a key in Java? I donβt care what type of encryption (AES, DES, etc.), I just do not care that it is connected using a key and does not break easily.
Ideally, I would like this to be a one line solution:
String encryptedString = NativeEncryptionClass.encrypt("this is the data", "key123");
thanks
source share