Update Md4PasswordEncoder Javadoc

Include format and migration information.

Issue: gh-4674
This commit is contained in:
Rob Winch
2017-10-24 07:18:48 -05:00
parent 03ebf19878
commit 6532bac295
2 changed files with 48 additions and 2 deletions

View File

@@ -66,5 +66,11 @@ public class Md4PasswordEncoderTests {
assertThat(md4.matches(rawPassword, encodedPassword)).isTrue();
}
@Test
public void javadocWhenHasSaltThenMatches() {
Md4PasswordEncoder encoder = new Md4PasswordEncoder();
assertThat(encoder.matches("password", "{thisissalt}6cc7924dad12ade79dfb99e424f25260"));
}
}