I solved the problem. My default locale is TR_tr. When i run the program
without changing the default locale it outputs "false".
but when i run the programming as below it outputs "true"
public class App {
public static void main(String[] args) {
PasswordService psd = new DefaultPasswordService();
String password = "333";
String enc = psd.encryptPassword(password);
Locale.setDefault(Locale.ENGLISH);
System.out.println(Locale.getDefault());
System.out.print(psd.passwordsMatch(password, enc));
}
}
--
View this message in context:
http://shiro-user.582556.n2.nabble.com/Plain-password-and-encrypted-password-doesn-t-match-tp7579552p7579560.html
Sent from the Shiro User mailing list archive at Nabble.com.