org.figure8.join.util
Class UnixCrypt

java.lang.Object
  extended by org.figure8.join.util.UnixCrypt

public class UnixCrypt
extends java.lang.Object

Unix Crypt. Implements the one way cryptography used by Unix systems for simple password protection. This class has been extracted from Jetty package.
Copyright (c) 1996 Aki Yoshida. All rights reserved.
Permission to use, copy, modify and distribute this software for non-commercial or commercial purposes and without fee is hereby granted provided that this copyright notice appears in all copies.

Version:
0.9, 11/25/96 - $Revision: 1.3 $
Author:
Aki Yoshida modified April 2001 by Iris Van den Broeke, Daniel Deville

Method Summary
static java.lang.String crypt(java.lang.String key, java.lang.String setting)
          Encrypts String into crypt (Unix) code.
static void main(java.lang.String[] arg)
          Convenient method for command line usage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

crypt

public static java.lang.String crypt(java.lang.String key,
                                     java.lang.String setting)
Encrypts String into crypt (Unix) code.

Parameters:
key - the key to be encrypted
setting - the salt to be used
Returns:
the encrypted String

main

public static void main(java.lang.String[] arg)
Convenient method for command line usage.

Parameters:
arg - Array of arguments (key, value)


Copyright © 2005-2008 Join. All Rights Reserved.