com.graeff.pwencode.MD5Crypt Class Reference

List of all members.

Detailed Description

This class defines a method, crypt(), which takes a password and a salt string and generates an OpenBSD/FreeBSD/Linux-compatible md5-encoded password entry.

Created: 3 November 1999

Release:

Name
HEAD

Version:

Revision
1.1

Last Mod Date:

Date
2004/02/04 08:10:35

Java Code By: Jonathan Abbey, jonabbey@arlut.utexas.edu

Original C Version:

 ----------------------------------------------------------------------------
 "THE BEER-WARE LICENSE" (Revision 42):
 <phk@login.dknet.dk> wrote this file.  As long as you retain this notice you
 can do whatever you want with this stuff. If we meet some day, and you think
 this stuff is worth it, you can buy me a beer in return.   Poul-Henning Kamp
 ----------------------------------------------------------------------------
 


Static Public Member Functions

static void main (String argv[])
 Command line test rig.
static final String crypt (String password)
static final String crypt (String password, String salt)


Member Function Documentation

static final String com.graeff.pwencode.MD5Crypt.crypt String  password,
String  salt
[static]
 

This method actually generates a OpenBSD/FreeBSD/Linux PAM compatible md5-encoded password hash from a plaintext password and a salt.

The resulting string will be in the form '$1$<salt>$<hashed mess>

Parameters:
password Plaintext password
salt A short string to use to randomize md5. May start with $1$, which will be ignored. It is explicitly permitted to pass a pre-existing MD5Crypt'ed password entry as the salt. crypt() will strip the salt chars out properly.
Returns:
An OpenBSD/FreeBSD/Linux-compatible md5-hashed password field.

static final String com.graeff.pwencode.MD5Crypt.crypt String  password  )  [static]
 

This method actually generates a OpenBSD/FreeBSD/Linux PAM compatible md5-encoded password hash from a plaintext password and a salt.

The resulting string will be in the form '$1$<salt>$<hashed mess>

Parameters:
password Plaintext password
Returns:
An OpenBSD/FreeBSD/Linux-compatible md5-hashed password field.

static void com.graeff.pwencode.MD5Crypt.main String  argv[]  )  [static]
 

Command line test rig.


The documentation for this class was generated from the following file:
Generated on Sat Feb 11 01:20:01 2012 for Node Director by  doxygen 1.4.5