Class CryptoUtils


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

      Constructors 
      Constructor Description
      CryptoUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] desDecrypt​(byte[] data, byte[] key, byte[] iv)  
      static byte[] desEncrypt​(byte[] data, byte[] key, byte[] iv)  
      static byte[] sha1​(java.lang.String str)  
      • Methods inherited from class java.lang.Object

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

      • CryptoUtils

        public CryptoUtils()
    • Method Detail

      • sha1

        public static byte[] sha1​(java.lang.String str)
      • desDecrypt

        public static byte[] desDecrypt​(byte[] data,
                                        byte[] key,
                                        byte[] iv)
      • desEncrypt

        public static byte[] desEncrypt​(byte[] data,
                                        byte[] key,
                                        byte[] iv)