Class Crypt


  • public class Crypt
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Crypt()
      构造函数
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] decrypt​(byte[] in, byte[] k)  
      byte[] decrypt​(byte[] in, int offset, int len, byte[] k)
      解密
      byte[] encrypt​(byte[] in, byte[] k)  
      byte[] encrypt​(byte[] in, int offset, int len, byte[] k)  
      static long getUnsignedInt​(byte[] in, int offset, int len)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Crypt

        public Crypt()
        构造函数
    • Method Detail

      • decrypt

        public byte[] decrypt​(byte[] in,
                              int offset,
                              int len,
                              byte[] k)
        解密
        Parameters:
        in - 密文
        offset - 密文开始的位置
        len - 密文长度
        k - 密钥
        Returns:
        明文
      • decrypt

        public byte[] decrypt​(byte[] in,
                              byte[] k)
      • encrypt

        public byte[] encrypt​(byte[] in,
                              int offset,
                              int len,
                              byte[] k)
      • encrypt

        public byte[] encrypt​(byte[] in,
                              byte[] k)
      • getUnsignedInt

        public static long getUnsignedInt​(byte[] in,
                                          int offset,
                                          int len)