org.apache.directory.api.util
Class UnixCrypt
java.lang.Object
org.apache.directory.api.util.UnixCrypt
public class UnixCrypt
- extends Object
Unix Crypt.
Implements the one way cryptography used by Unix systems for
simple password protection.
- Author:
- Greg Wilkins (gregw)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
crypt
public static String crypt(String key,
String setting)
- Encrypts String into crypt (Unix) code.
- Parameters:
key - the key to be encryptedsetting - the salt to be used
- Returns:
- the encrypted String
main
public static void main(String[] arg)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.