summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape/cmscore/authentication/ChallengePhraseAuthentication.java
diff options
context:
space:
mode:
Diffstat (limited to 'pki/base/common/src/com/netscape/cmscore/authentication/ChallengePhraseAuthentication.java')
-rw-r--r--pki/base/common/src/com/netscape/cmscore/authentication/ChallengePhraseAuthentication.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/pki/base/common/src/com/netscape/cmscore/authentication/ChallengePhraseAuthentication.java b/pki/base/common/src/com/netscape/cmscore/authentication/ChallengePhraseAuthentication.java
index 48f743ee3..1c4d9fbcf 100644
--- a/pki/base/common/src/com/netscape/cmscore/authentication/ChallengePhraseAuthentication.java
+++ b/pki/base/common/src/com/netscape/cmscore/authentication/ChallengePhraseAuthentication.java
@@ -46,6 +46,7 @@ import com.netscape.cmscore.base.SubsystemRegistry;
import com.netscape.cmscore.dbs.CertRecord;
import com.netscape.cmscore.dbs.CertificateRepository;
import com.netscape.cmscore.util.Debug;
+import com.netscape.cmsutil.util.Utils;
/**
* Challenge phrase based authentication.
@@ -405,7 +406,7 @@ public class ChallengePhraseAuthentication implements IAuthManager {
private String hashPassword(String pwd) {
String salt = "lala123";
byte[] pwdDigest = mSHADigest.digest((salt + pwd).getBytes());
- String b64E = com.netscape.osutil.OSUtil.BtoA(pwdDigest);
+ String b64E = Utils.base64encode(pwdDigest);
return "{SHA}" + b64E;
}