init spring

This commit is contained in:
shimingxy
2019-05-25 23:39:07 +08:00
parent 84eb786d27
commit f2005bf4f8
402 changed files with 2117 additions and 12805 deletions

View File

@@ -0,0 +1,21 @@
package org.maxkey.crypto.password;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
public class PasswordReciprocalTest {
public PasswordReciprocalTest() {
// TODO Auto-generated constructor stub
}
public static void main(String[] args) {
// TODO Auto-generated method stub
BCryptPasswordEncoder spe= new BCryptPasswordEncoder();
String pass=PasswordReciprocal.getInstance().rawPassword("admin", "admin");
String epass=spe.encode(pass);
System.out.println("PasswordEncoder "+epass);
System.out.println(PasswordReciprocal.getInstance().decoder("bb2002b9f55b05d3e0e6f34ec5321051"));
}
}