Class EncryptTo


  • public final class EncryptTo
    extends java.lang.Object
    This class includes simple hash operations, which should use, to sign data or some other operations.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private EncryptTo()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] encryptToSHA1​(byte[] bytes)
      Encrypts the following byte array to an SHA-1 hash
      static byte[] encryptToSHA1​(java.lang.String text)
      Invokes the encryptToSHA1(byte[] bytes) method
      static byte[] encryptToSHA256​(byte[] bytes)
      Encrypts the following byte array to an SHA-256 hash
      static byte[] encryptToSHA256​(java.lang.String text)
      Invokes the encryptToSHA256(byte[] bytes) method
      • Methods inherited from class java.lang.Object

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

      • EncryptTo

        private EncryptTo()
    • Method Detail

      • encryptToSHA256

        public static byte[] encryptToSHA256​(java.lang.String text)
        Invokes the encryptToSHA256(byte[] bytes) method
      • encryptToSHA256

        public static byte[] encryptToSHA256​(byte[] bytes)
        Encrypts the following byte array to an SHA-256 hash
        Parameters:
        bytes - the following bytes which should encrypt
        Returns:
        the output SHA-256 hash
      • encryptToSHA1

        public static byte[] encryptToSHA1​(java.lang.String text)
        Invokes the encryptToSHA1(byte[] bytes) method
      • encryptToSHA1

        public static byte[] encryptToSHA1​(byte[] bytes)
        Encrypts the following byte array to an SHA-1 hash
        Parameters:
        bytes - the following bytes which should encrypt
        Returns:
        the output SHA-1 hash