Skip to content

Testing the encoding functionality of security related java encoders (OWASP ESAPI, OWASP java-encoder)

Notifications You must be signed in to change notification settings

dledmonds/encoder-test

Repository files navigation

encoder-test

Testing the encoding functionality of various security related encoders.

Quick Start

If you just want to jump to the interesting bit, here's what's in the output directory.

Building/Running locally

First generate the .NET data:

docker run --rm -it \
  -v "$PWD/dotnet:/app/dotnet" \
  -v "$PWD/encoder-test-java/src/main/resources/encodingData:/app/encoder-test-java/src/main/resources/encodingData" \
  -v "$PWD/output:/app/output" \
  --workdir /app/dotnet \
  mcr.microsoft.com/dotnet/sdk:6.0 dotnet run

Then generate the Java data and produce the reports:

docker run --rm -it -v "$PWD:/app" --entrypoint bash --workdir /app maven
mvn clean install
java -jar encoder-test-java/target/encoder-test-java-1-SNAPSHOT-jar-with-dependencies.jar
java -jar encoder-test-transform/target/encoder-test-transform-1-SNAPSHOT-jar-with-dependencies.jar
exit

The output directory will contain the results of executing the tests (JSON files) as well as the HTML comparison files. Start at index.html

About

Testing the encoding functionality of security related java encoders (OWASP ESAPI, OWASP java-encoder)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published