We have a requirement to encrypt the values using AES – AES/CBC/PKCS5Padding (for that we got the AES encryption file) before sending it over the network (to call a rest api), may you please suggest the best way to achieve this.
Do you intend to encrypt individual values and then use them in a message, or you have to encrypt the whole HTTP request body?
In either case, on the server you can access cryptography classes provided by the JDK.
You can place the encryption code in a new Java class and then invoke e.g. a static method, or you can invoke all the methods directly from Scheme.