Package net.minecraft.util
Class Crypt
java.lang.Object
net.minecraft.util.Crypt
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PublicKey
byteToPublicKey
(byte[] p_13601_) private static byte[]
cipherData
(int p_13587_, Key p_13588_, byte[] p_13589_) static SecretKey
decryptByteToSecretKey
(PrivateKey p_13598_, byte[] p_13599_) static byte[]
decryptUsingKey
(Key p_13606_, byte[] p_13607_) private static byte[]
digestData
(byte[]... p_13603_) static byte[]
digestData
(String p_13591_, PublicKey p_13592_, SecretKey p_13593_) static byte[]
encryptUsingKey
(Key p_13595_, byte[] p_13596_) static KeyPair
static SecretKey
static Cipher
private static Cipher
setupCipher
(int p_13580_, String p_13581_, Key p_13582_)
-
Field Details
-
SYMMETRIC_ALGORITHM
- See Also:
-
SYMMETRIC_BITS
private static final int SYMMETRIC_BITS- See Also:
-
ASYMMETRIC_ALGORITHM
- See Also:
-
ASYMMETRIC_BITS
private static final int ASYMMETRIC_BITS- See Also:
-
BYTE_ENCODING
- See Also:
-
HASH_ALGORITHM
- See Also:
-
-
Constructor Details
-
Crypt
public Crypt()
-
-
Method Details
-
generateSecretKey
- Throws:
CryptException
-
generateKeyPair
- Throws:
CryptException
-
digestData
public static byte[] digestData(String p_13591_, PublicKey p_13592_, SecretKey p_13593_) throws CryptException - Throws:
CryptException
-
digestData
- Throws:
Exception
-
byteToPublicKey
- Throws:
CryptException
-
decryptByteToSecretKey
public static SecretKey decryptByteToSecretKey(PrivateKey p_13598_, byte[] p_13599_) throws CryptException - Throws:
CryptException
-
encryptUsingKey
- Throws:
CryptException
-
decryptUsingKey
- Throws:
CryptException
-
cipherData
- Throws:
CryptException
-
setupCipher
- Throws:
Exception
-
getCipher
- Throws:
CryptException
-