From e4e2fa7c224b7c5451e537cb71ff618683f70958 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Wed, 24 Jun 2015 16:04:58 +0400 Subject: [PATCH] =?UTF-8?q?mise=20=C3=A0=20jour=20upassword=20pour=20affic?= =?UTF-8?q?her=20sha=20en=20hexad=C3=A9cimal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upassword | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/upassword b/upassword index 54105be..e3bbb7e 100755 --- a/upassword +++ b/upassword @@ -4795,6 +4795,10 @@ public class upassword { return sb.toString(); } + private static final String getShaHex(String sha) { + return toHex(Base64.decode(sha)); + } + private void run(String[] args) { if (args.length == 1 && strEquals(args[0], "--help")) { println("USAGE:" // @@ -4954,6 +4958,7 @@ public class upassword { printvar("ntlm", ntlm, shell); printvar("crypt", crypt, shell); printvar("sha", sha, shell); + printvar("shahex", getShaHex(sha), shell); printvar("ssha", ssha, shell); printvar("md5", md5, shell); printvar("smd5", smd5, shell);