Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.springframework.security.crypto.password.PasswordEncoder;
- ...
- @Autowired
- private PasswordEncoder passwordEncoder;
- @Test
- public void testPasswordEncoder() {
- // replace "Abcd1234" with your passord
- String hash = passwordEncoder.encode("Abcd1234");
- System.out.println(hash);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement