Package net.minecraft.util
Class CryptManager
java.lang.Object
net.minecraft.util.CryptManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PublicKeybyteToPublicKey(byte[] p_75896_0_) private static byte[]cipherData(int p_75885_0_, Key p_75885_1_, byte[] p_75885_2_) static SecretKeydecryptByteToSecretKey(PrivateKey p_75887_0_, byte[] p_75887_1_) static byte[]decryptUsingKey(Key p_75889_0_, byte[] p_75889_1_) private static byte[]digestData(byte[]... p_244731_0_) static byte[]digestData(String p_75895_0_, PublicKey p_75895_1_, SecretKey p_75895_2_) static byte[]encryptUsingKey(Key p_75894_0_, byte[] p_75894_1_) static KeyPairstatic SecretKeystatic Cipherprivate static CiphersetupCipher(int p_75886_0_, String p_75886_1_, Key p_75886_2_)
-
Constructor Details
-
CryptManager
public CryptManager()
-
-
Method Details
-
generateSecretKey
- Throws:
CryptException
-
generateKeyPair
- Throws:
CryptException
-
digestData
public static byte[] digestData(String p_75895_0_, PublicKey p_75895_1_, SecretKey p_75895_2_) throws CryptException - Throws:
CryptException
-
digestData
- Throws:
Exception
-
byteToPublicKey
- Throws:
CryptException
-
decryptByteToSecretKey
public static SecretKey decryptByteToSecretKey(PrivateKey p_75887_0_, byte[] p_75887_1_) throws CryptException - Throws:
CryptException
-
encryptUsingKey
- Throws:
CryptException
-
decryptUsingKey
- Throws:
CryptException
-
cipherData
private static byte[] cipherData(int p_75885_0_, Key p_75885_1_, byte[] p_75885_2_) throws CryptException - Throws:
CryptException
-
setupCipher
private static Cipher setupCipher(int p_75886_0_, String p_75886_1_, Key p_75886_2_) throws Exception - Throws:
Exception
-
getCipher
- Throws:
CryptException
-