Encryption and Decryption in Java Cryptography
Maven
build tool is used to generate the artifacts and run the main class.
So, maven should be installed first and present in the environment path.
See https://maven.apache.org or https://brew.sh/ for macOS
or https://docs.brew.sh/Homebrew-on-Linux for linux
mvn clean package -DskipTests=true
java -jar target/demo-criptografia-1.0.jar
Just run the main method inside demo.Encriptador