This example shows how to call a Java function using JNI (Java Native Interface).
PS: The function is from Itaú Shopline, a bank from Brazil which uses a function to encrypt data for payment request. Before FFI, the function was decompiled and written in PHP https://github.com/gabrielrcouto/php-itaucripto
Based on Calling Java From C