0

I have written a controller ,In which I encrypted the password using BCryptPasswordEncoder like following

  public void setPassword(String password) {

    BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();  
      String Password = passwordEncoder.encode(password);  
    this.password = Password;
}

Now I want to decrypt the encrypted password,So is there any class like BCryptPasswordEncoder for decrypt the password ? Please anybody help

user2864740
  • 60,010
  • 15
  • 145
  • 220
Md Aslam
  • 1,228
  • 8
  • 27
  • 61
  • 5
    It's not encrypted; it's hashed. It is fundamentally *not* reversible. – user2864740 Aug 11 '14 at 10:23
  • http://stackoverflow.com/a/18084693/2864740 , http://stackoverflow.com/questions/184328/what-is-the-difference-between-obfuscation-hashing-and-encryption?lq=1 , http://stackoverflow.com/questions/326699/difference-between-hashing-a-password-and-encrypting-it?rq=1 – user2864740 Aug 11 '14 at 10:24

0 Answers0