org.mortbay.util

Class UnixCrypt


public class UnixCrypt
extends Object

Unix Crypt. Implements the one way cryptography used by Unix systems for simple password protection.
Version:
$Id: UnixCrypt.java,v 1.5 2004/10/11 00:28:41 gregwilkins Exp $
Author:
Greg Wilkins (gregw)

Method Summary

static String
crypt(String key, String setting)
Encrypts String into crypt (Unix) code.
static void
main(String[] arg)

Method Details

crypt

public static String crypt(String key,
                           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(String[] arg)

Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.