| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private byte[] | |
| private byte[] | |
| private static final byte[] | |
| private byte[] | |
| private static final byte[] | |
| private static final byte[] | |
| private byte[] | |
| private byte[] | |
| private static final byte[] | |
| private static final byte[] | |
| private static final byte[] | |
| private static final byte[] | |
| private static final byte[] | |
| private byte[] | |
| private static final byte[][] | |
| private static final byte[] | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized byte[] | Returns: A new byte[13] array that contains the encrypted password. The first two characters are the salt.the password to "encrypt". pw, byte[] the salt to use. salt)Implements the libc crypt(3) function. |
| private void | |
| public static void | |
| private void |
| C | back to summary |
|---|---|
| private byte[] C | |
| D | back to summary |
|---|---|
| private byte[] D | |
| E | back to summary |
|---|---|
| private byte[] E | |
| e2 | back to summary |
|---|---|
| private static final byte[] e2 | |
| f | back to summary |
|---|---|
| private byte[] f | |
| FP | back to summary |
|---|---|
| private static final byte[] FP | |
| IP | back to summary |
|---|---|
| private static final byte[] IP | |
| KS | back to summary |
|---|---|
| private byte[] KS | |
| L | back to summary |
|---|---|
| private byte[] L | |
| P | back to summary |
|---|---|
| private static final byte[] P | |
| PC1_C | back to summary |
|---|---|
| private static final byte[] PC1_C | |
| PC1_D | back to summary |
|---|---|
| private static final byte[] PC1_D | |
| PC2_C | back to summary |
|---|---|
| private static final byte[] PC2_C | |
| PC2_D | back to summary |
|---|---|
| private static final byte[] PC2_D | |
| preS | back to summary |
|---|---|
| private byte[] preS | |
| S | back to summary |
|---|---|
| private static final byte[][] S | |
| shifts | back to summary |
|---|---|
| private static final byte[] shifts | |
| tempL | back to summary |
|---|---|
| private byte[] tempL | |
| Crypt | back to summary |
|---|---|
| public Crypt() Creates a new Crypt object for use with the crypt method. | |
| crypt | back to summary |
|---|---|
| public synchronized byte[] crypt(byte[] pw, byte[] salt) Implements the libc crypt(3) function.
| |
| encrypt | back to summary |
|---|---|
| private void encrypt(byte[] block, int fake) | |
| main | back to summary |
|---|---|
| public static void main(String[] arg) program to test the crypt routine. The first parameter is the cleartext password, the second is the salt to use. The salt should be two characters from the set [a-zA-Z0-9./]. Outputs the crypt result.
| |
| setkey | back to summary |
|---|---|
| private void setkey(byte[] key) | |