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