Package org.sonatype.security.ldap.dao.password.hash

Examples of org.sonatype.security.ldap.dao.password.hash.MD5Crypt


    int lastIdx = crypted.lastIndexOf('$');
    int firstIdx = crypted.indexOf('$');

    String salt = crypted.substring(firstIdx + "$1$".length(), lastIdx);

    String check = "{CRYPT}" + new MD5Crypt().crypt("test", salt);

    // System.out.println( "Check value: \'" + check + "\'" );

    Assert.assertEquals(check, crypted);
View Full Code Here

TOP

Related Classes of org.sonatype.security.ldap.dao.password.hash.MD5Crypt

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.