The test case is as follows.
import cryptix.tools.UnixCrypt;
public class Test {
public static void main(String args[]) {
String cryptPass ="";
String prePass = "";
String account = "abcdefg";
String password = "abcdefghi123";
UnixCrypt jc = new UnixCrypt(account);
for(int i = 0; i < 10000; i++)
{
cryptPass = jc.crypt(password);
if(i != 0)
{
if(!prePass.equals(cryptPass))
{
System.out.println("Mismatch");
break;
}
}
prePass = cryptPass;
}
}
}
j2sdk1.4.2_04/bin/java -server -classpath .:cryptix32.jar Test
A mismatch is found when it shouldnt occur.
The problem is not occuring when using 1.3.1_11 or 1.5.0-beta2-b49.
###@###.### 2004-05-18
###@###.### 2004-05-18