//复制下来 命名为 Rijndael
java 直接可以运行 public class Rijndael { public Rijndael() { } /** * Flag to setup the encryption key schedule
*/ public static final int DIR_ENCRYPT = 1; /** * Flag to setup the decryption key schedule
*/ public static final int DIR_DECRYPT = 2; /** * Flag to setup both key schedules (encryption/decryption)
*/ public static final int DIR_BOTH = (DIR_ENCRYPT | DIR_DECRYPT); /** * AES block size in bits (N
the Rijndael algorithm itself allows for * other sizes)
*/ public static final int BLOCK_BITS = 128; /** * AES block size in bytes (N
the Rijndael algorithm itself allows for * other sizes)
*/ public static final int BLOCK_SIZE = (BLOCK_BITS >>> 3); /** * Substitution table (S-box)
*/ private static final String SS = "/u637C/u777B/uF26B/u6FC5/u3001/u672B/uFED7/