标签:imp use SHA256 class comm utils stp port import
package me.cf81.util; import me.cf81.commons.utils.EncryptUtils; import java.util.UUID; /** * 生成密码 * */ public class GeneratePassword { public void testPassword() { String loginName = "userName"; String salt = UUID.randomUUID().toString().replace("-", ""); System.out.println(salt); String password = EncryptUtils.SHA256Encode("password" + salt); System.out.println(password); } }
标签:imp use SHA256 class comm utils stp port import
原文地址:http://www.cnblogs.com/thankyouGod/p/7088822.html