Obfuscating Text using Jetty
-
Open a command terminal.
-
Navigate to the <eftlink installation directory>\lib directory.
-
Before executing the command below, replace
<java>
with the location to your JDK version and replace<username>
with a meaningful value. Also, replace<password>
. The parameter<password>
is your desired password or string you wish to obfuscate. -
Execute the command.
<java>\bin\java -cp jetty-util-12.0.14.jar org.eclipse.jetty.util.security.Password <Username> <Password>
The output should look something like below. Note that we are only interested in the OBF value for the purposes of this document.
OBF:1oq31uum1xtv1zej1zer1xtn1uvk1or7
MD5:Dc647eB65e6711E155375218212b3964CRYPT:efE.3y6/wNpn6