Class JavaCrypt

java.lang.Object
jnr.posix.util.JavaCrypt

public class JavaCrypt extends Object
  • Field Details

    • ITERATIONS

      private static final int ITERATIONS
      See Also:
    • con_salt

      private static final int[] con_salt
    • shifts2

      private static final boolean[] shifts2
    • skb

      private static final int[][] skb
    • SPtrans

      private static final int[][] SPtrans
    • cov_2char

      private static final int[] cov_2char
  • Constructor Details

    • JavaCrypt

      public JavaCrypt()
  • Method Details

    • byteToUnsigned

      private static final int byteToUnsigned(byte b)
    • fourBytesToInt

      private static int fourBytesToInt(byte[] b, int offset)
    • intToFourBytes

      private static final void intToFourBytes(int iValue, byte[] b, int offset)
    • PERM_OP

      private static final void PERM_OP(int a, int b, int n, int m, int[] results)
    • HPERM_OP

      private static final int HPERM_OP(int a, int n, int m)
    • des_set_key

      private static int[] des_set_key(byte[] key)
    • D_ENCRYPT

      private static final int D_ENCRYPT(int L, int R, int S, int E0, int E1, int[] s)
    • body

      private static final int[] body(int[] schedule, int Eswap0, int Eswap1)
    • crypt

      public static final CharSequence crypt(CharSequence original, CharSequence salt)