- Create integration test for the HashAlgorithm enum - Create AsciiRestricted annotation and make test aware of it - Add option to skip "same hash for same salt" test (for wordpress) - Change some EncryptionMethods to extend from a common superclass
22 lines
687 B
Java
22 lines
687 B
Java
package fr.xephi.authme.security.crypts;
|
|
|
|
/**
|
|
* Test for {@link WORDPRESS}.
|
|
*/
|
|
public class WORDPRESSTest extends AbstractEncryptionMethodTest {
|
|
|
|
public WORDPRESSTest() {
|
|
super(new WORDPRESS(),
|
|
"$P$B9wyjxuU4yrfjnnHNGSzH9ti9CC0Os1", // password
|
|
"$P$BjzPjjzPjjkRzvGGRTyYu0sNqcz6Ci0", // PassWord1
|
|
"$P$BjzPjjzPjrAOyB1V0WFdpisgCTFx.N/", // &^%te$t?Pw@_
|
|
"$P$BjzPjxxyjp2QdKcab/oTW8l/W0AgE21"); // âË_3(íù*
|
|
}
|
|
|
|
@Override
|
|
protected boolean testHashEqualityForSameSalt() {
|
|
// We need to skip the test because Wordpress uses an "internal salt" that is not exposed to the outside
|
|
return false;
|
|
}
|
|
}
|