问题
I am new to ESAPI and I have added esapi-2.0.1 jar to my Android app,was able to call any of the ESAPI methods.However, I am getting Caused by: java.lang.IllegalArgumentException: Failed to load ESAPI.properties as a classloader resource Error.My concern is it possible to use ESAPI for any android apps and if Yes then where to locate ESAPI.properties in an App.
Any help would be appreciated.
PS:This is my first question on stackoverflow.com pardon me if I did not follow any of the rules .
Update:There is a similar question looking for an answer can we use owasp-ESAPI for logging android application?
Update 1:Sample code
'String val = "twenty-one%0a%0aINFO:+User+logged+out%3dbadguy";
val = ESAPI.encoder().encodeForHTML(val);
try {
int value = Integer.parseInt(val);
} catch (NumberFormatException e) {
Log.v("ESAPI", "Failed to parse val = " + val);
}'
来源:https://stackoverflow.com/questions/46947541/how-to-use-esapi-logger-in-an-android-native-or-corodva-application