Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import org.springframework.security.crypto.password.PasswordEncoder;
  2. ...
  3. @Autowired
  4. private PasswordEncoder passwordEncoder;
  5.  
  6. @Test
  7. public void testPasswordEncoder() {
  8. // replace "Abcd1234" with your passord
  9. String hash = passwordEncoder.encode("Abcd1234");
  10. System.out.println(hash);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement