|
@@ -4,11 +4,11 @@ import java.util.Date;
|
|
|
|
|
|
|
|
import org.apache.shiro.crypto.hash.SimpleHash;
|
|
import org.apache.shiro.crypto.hash.SimpleHash;
|
|
|
import org.apache.shiro.util.ByteSource;
|
|
import org.apache.shiro.util.ByteSource;
|
|
|
-
|
|
|
|
|
import com.goafanti.common.model.Admin;
|
|
import com.goafanti.common.model.Admin;
|
|
|
import com.goafanti.common.model.AftUser;
|
|
import com.goafanti.common.model.AftUser;
|
|
|
import com.goafanti.common.model.User;
|
|
import com.goafanti.common.model.User;
|
|
|
|
|
|
|
|
|
|
+
|
|
|
public class PasswordUtil {
|
|
public class PasswordUtil {
|
|
|
private String algorithmName = "md5";
|
|
private String algorithmName = "md5";
|
|
|
private int hashIterations = 2;
|
|
private int hashIterations = 2;
|