コード例 #1
0
 protected String hashPassword(final String password) {
   if (password == null) {
     return "";
   }
   return DigestUtils.sha512Hex(password);
 }
コード例 #2
0
 protected String getUserId(final String username) {
   return DigestUtils.sha512Hex(username);
 }