Skip to Content
1
Sep 04, 2016 at 09:23 PM

You cannot decode a PBKDF2WithHmacSHA1 hash!

413 Views

Hi All,

I am getting the "You cannot decode a PBKDF2WithHmacSHA1 hash!" while decoding the password using decode() of PasswordEncoderService like

final String decodedPassword = getPasswordEncoderService().decode(userModel);

Can any one let me know how to decode the password. I also tried to encode the passowrd with same password encoding[pbkdf2] but getting different value. Can any one let me know that if i am entering the same password trough impex file then i am getting different encoded password but when i am trying to encode by passing the same password to the service then the values are coming different. final String encodedCurrentPassword = getPasswordEncoderService().encode(userModel, request.getParameter(PASSWORD),userModel.getPasswordEncoding());

Any Clues how to encode to get the same value.

Appreciate any suggestion on encoding and decoding