org.apache.turbine.services.crypto.impl
Class UnixCrypt

java.lang.Object
  extended byorg.apache.turbine.services.crypto.impl.UnixCrypt

public class UnixCrypt
extends java.lang.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 java.lang.String crypt(java.lang.String original)
           
static java.lang.String crypt(java.lang.String salt, java.lang.String original)
           
static boolean matches(java.lang.String encryptedPassword, java.lang.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 java.lang.String crypt(java.lang.String original)

crypt

public static final java.lang.String crypt(java.lang.String salt,
                                           java.lang.String original)

matches

public static final boolean matches(java.lang.String encryptedPassword,
                                    java.lang.String enteredPassword)


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.