public static void main(String[] args) {
//加密方式
String hashAlgorithmName = "MD5";
//需要加密的字符串
Object credentials = "123456";
//获取盐值
Object salt = ByteSource.Util.bytes("user");
//加密次数
int hashIterations = 1024;
Object result = new SimpleHash(hashAlgorithmName, credentials, salt, hashIterations);
System.out.println(result);
}