Class EncryptTo
- java.lang.Object
-
- de.dytanic.cloudnet.common.encrypt.EncryptTo
-
public final class EncryptTo extends java.lang.ObjectThis class includes simple hash operations, which should use, to sign data or some other operations.
-
-
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 hashstatic byte[]encryptToSHA1(java.lang.String text)Invokes the encryptToSHA1(byte[] bytes) methodstatic byte[]encryptToSHA256(byte[] bytes)Encrypts the following byte array to an SHA-256 hashstatic byte[]encryptToSHA256(java.lang.String text)Invokes the encryptToSHA256(byte[] bytes) method
-
-
-
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
-
-