org.apache.fulcrum.crypto.impl
Class UnixCrypt

java.lang.Object
  extended by org.apache.fulcrum.crypto.impl.UnixCrypt

public class UnixCrypt
extends Object

Unix crypt (3) algorithm implementation. The java implementation was taken from the JetSpeed Portal project (see org.apache.jetspeed.services.security.ldap.UnixCrypt).

Author:
Siegfried Goeschl

Method Summary
static String crypt(String original)
           
static String crypt(String salt, String original)
           
static boolean matches(String encryptedPassword, String enteredPassword)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

crypt

public static final String crypt(String original)

crypt

public static final String crypt(String salt,
                                 String original)

matches

public static final boolean matches(String encryptedPassword,
                                    String enteredPassword)


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.