org.apache.lenya.ac
Class Password

java.lang.Object
  extended by org.apache.lenya.ac.Password

public class Password
extends java.lang.Object

Encrypt plain text password Example: "message digest" becomes "f96b697d7cb7938d525a2f31aaf161d0" (hexadecimal notation (32 characters))


Constructor Summary
Password()
           
 
Method Summary
static java.lang.String encrypt(java.lang.String plain)
          Encrypt plain text password
static java.lang.String getMD5(java.lang.String plain)
          Returns the MD5 representation of a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Password

public Password()
Method Detail

encrypt

public static java.lang.String encrypt(java.lang.String plain)
Encrypt plain text password

Parameters:
plain - plain text password
Returns:
encrypted password

getMD5

public static java.lang.String getMD5(java.lang.String plain)
Returns the MD5 representation of a string.

Parameters:
plain - The plain string.
Returns:
A string.


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.