Class MD5Crypt

  extended byutil.gen.MD5Crypt

public final class MD5Crypt
extends java.lang.Object

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: $

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):
  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

Modified by Nix April 2005, just call MD5Crypt.crypt("password","salt"); returns crypted password, not magic or salt stuff.

Constructor Summary
Method Summary
static java.lang.String crypt(java.lang.String password, java.lang.String salt)
static void main(java.lang.String[] argv)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public MD5Crypt()
Method Detail


public static void main(java.lang.String[] argv)


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