public class UnixCrypt extends Object
See John Dumas's Java Crypt page for the original source.
Modifier and Type | Method and Description |
---|---|
static byte[] |
crypt(byte[] salt,
byte[] original)
Encrypt a password given the cleartext password and a "salt".
|
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.Copyright © 2017 PostgreSQL Global Development Group. All rights reserved.