|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.spatula.utils.freeBSDcrypt
Class containing static methods for encrypting passwords in FreeBSD md5 style.
Method Summary | |
static java.lang.String |
crypt(java.lang.String password,
java.lang.String salt)
Encrypts a password using FreeBSD-style md5-based encryption |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String crypt(java.lang.String password, java.lang.String salt) throws java.security.NoSuchAlgorithmException
password
- The cleartext password to be encryptedsalt
- The salt used to add some entropy to the encryptionjava.security.NoSuchAlgorithmException
- if java.security
does not support MD5
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |