assertEquals(PLAIN_PWD, new String(cipher.encrypt(PLAIN_PWD)));
assertEquals(PLAIN_PWD, cipher.decrypt(PLAIN_PWD.toCharArray()));
}
public void testStaticDesCodec() {
PasswordCipher cipher = new StaticDESPasswordCipher();
char[] tmp = cipher.encrypt(PLAIN_PWD);
assertEquals(PLAIN_PWD, cipher.decrypt(tmp));
}