Package org.apache.openejb.cipher

Examples of org.apache.openejb.cipher.StaticDESPasswordCipher


        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));
    }
View Full Code Here


        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));
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.cipher.StaticDESPasswordCipher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.