jdk.security.auth/com.sun.security.auth.module.Crypt - Crypt Tool


How to run "jdk.security.auth/com.sun.security.auth.module.Crypt" tool from JDK lib\modules JImage file?

✍: FYIcenter


"jdk.security.auth/com.sun.security.auth.module.Crypt" tool allows you to encrpt a password string like the Unix "crypt" function.

"jdk.security.auth/com.sun.security.auth.module.Crypt" tool is supported by the jmods\jdk.security.auth.jmod module file, which is also linked into the lib\modules JImage file.

You can run the "jdk.security.auth/com.sun.security.auth.module.Crypt" tool using the lib\modules JImage file as described below:

fyicenter> %JDK_HOME%\bin\java --module jdk.security.auth/com.sun.security.auth.module.Crypt
usage: Crypt password salt

fyicenter> %JDK_HOME%\bin\java --module jdk.security.auth/com.sun.security.auth.module.Crypt MyPassword st

 0 s
 1 t
 2 F
 3 E
 4 f
 5 Q
 6 P
 7 8
 8 b
 9 X
 10 A
 11 o
 12 c

The encrypted password is "FEfQP9bXAoc" after removing the first 2 salt characters in the output.


jdk.zipfs/jdk.nio.zipfs.ZipInfo - ZipInfo Tool

jdk.scripting.nashorn.shell/jdk.nashorn.tools.jjs.Main - "jjs" Command

Tools Supported from JDK 9+ lib\modules JImage

⇑⇑ FAQ for JDK (Java Development Kit)

2019-08-08, 1434🔥, 0💬