org.sourceforge.jxutil
Class JCrypt
java.lang.Object
|
+--org.sourceforge.jxutil.JCrypt
- public class JCrypt
- extends Object
jcrypt.java
Java-based implementation of the unix crypt command
Based upon C source code written by Eric Young, eay@psych.uq.oz.au
Constructor Summary |
private |
JCrypt()
|
Method Summary |
private static int[] |
body(int[] schedule,
int Eswap0,
int Eswap1)
|
private static int |
byteToUnsigned(byte b)
|
static String |
crypt(String salt,
String original)
|
private static int |
D_ENCRYPT(int L,
int R,
int S,
int E0,
int E1,
int[] s)
|
private static int[] |
des_set_key(byte[] key)
|
private static int |
fourBytesToInt(byte[] b,
int offset)
|
private static int |
HPERM_OP(int a,
int n,
int m)
|
private static void |
intToFourBytes(int iValue,
byte[] b,
int offset)
|
static void |
main(String[] args)
|
private static void |
PERM_OP(int a,
int b,
int n,
int m,
int[] results)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
con_salt
private static final int[] con_salt
cov_2char
private static final int[] cov_2char
ITERATIONS
private static final int ITERATIONS
- See Also:
- Constant Field Values
shifts2
private static final boolean[] shifts2
skb
private static final int[][] skb
SPtrans
private static final int[][] SPtrans
JCrypt
private JCrypt()
body
private static final int[] body(int[] schedule,
int Eswap0,
int Eswap1)
byteToUnsigned
private static final int byteToUnsigned(byte b)
crypt
public static final String crypt(String salt,
String original)
D_ENCRYPT
private static final int D_ENCRYPT(int L,
int R,
int S,
int E0,
int E1,
int[] s)
des_set_key
private static int[] des_set_key(byte[] key)
fourBytesToInt
private static int fourBytesToInt(byte[] b,
int offset)
HPERM_OP
private static final int HPERM_OP(int a,
int n,
int m)
intToFourBytes
private static final void intToFourBytes(int iValue,
byte[] b,
int offset)
main
public static void main(String[] args)
PERM_OP
private static final void PERM_OP(int a,
int b,
int n,
int m,
int[] results)
Copyright © 2001,2002 Keve Müller, et al.; see LICENSE file for details.