1. 程式人生 > >MD5加密(筆記)

MD5加密(筆記)

  public static String md5(String credentials, String saltSource) {
		            ByteSource salt = new Md5Hash(saltSource);
		            return new SimpleHash(hashAlgorithmName, credentials, salt,                 
                            hashIterations).toString();
  }