|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.postgresql.util.UnixCrypt
public class UnixCrypt
Contains static methods to encrypt and compare passwords with Unix encrypted passwords.
See John Dumas's Java Crypt page for the original source.
| Method Summary | |
|---|---|
static byte[] |
crypt(byte[] salt,
byte[] original)
Encrypt a password given the cleartext password and a "salt". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final byte[] crypt(byte[] salt,
byte[] original)
Encrypt a password given the cleartext password and a "salt".
salt - A two-character string representing the salt used to iterate the encryption engine
in lots of different ways. If you are generating a new encryption then this value should
be randomised.original - The password to be encrypted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||