use of org.apache.openejb.cipher.PlainTextPasswordCipher in project tomee by apache.
the class PasswordCodecTest method testPlainCodec.
public void testPlainCodec() {
final PasswordCipher cipher = new PlainTextPasswordCipher();
assertEquals(PLAIN_PWD, new String(cipher.encrypt(PLAIN_PWD)));
assertEquals(PLAIN_PWD, cipher.decrypt(PLAIN_PWD.toCharArray()));
}
Aggregations