Is this the best way to encrypt/decrypt data? And Is it good to store Generated InitVector and CipherText in database as Base64 String which is converted from byte[]? import javax.crypto.SecretKeyFactory; import javax.crypto.spec.SecretKeySpec; import javax.crypto.spec.PBEKeySpec; import javax.crypto.*; import java.util.Random; import java.security.SecureRandom; import java.security.AlgorithmParameters; import javax.crypto.spec.IvParameterSpec; import javax.crypto.Cipher; import java.nio.charset.StandardCharsets; import java.util.Base64; public class MyClass { publicRead more