In some use cases we require encryption and decryption of parameters. There are so many algorithm present for this implementation. Java Encryption Algorithms When we are implementing the algorithm we need to consider our requirement and select the appropriate algorithm. In one of my use case i had one requirement to send some parameters after encryption and decrypt it wherever i am using those parameters. I used AES algorithm. You can use the same code in your application by creating a java file. import java.io.IOException; import java.nio.charset.Charset; import java.security.GeneralSecurityException; import java.util.regex.Pattern; import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; import sun.misc.BASE64Decoder; import sun.misc.BASE64Encoder; public class Encryption { private static String key = "xyzBKabcccraSing"; public static void main(String[] args) {...
Advanced ADF and Webcenter Learning