Class MojangCrypt
java.lang.Object
net.minestom.server.extras.mojangAuth.MojangCrypt
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SecretKey
decryptByteToSecretKey
(PrivateKey privateKey, byte[] bytes) static byte[]
decryptUsingKey
(Key key, byte[] bytes) static byte @Nullable []
digestData
(String data, PublicKey publicKey, SecretKey secretKey) static @Nullable KeyPair
static Cipher
-
Constructor Details
-
MojangCrypt
public MojangCrypt()
-
-
Method Details
-
generateKeyPair
-
digestData
-
decryptByteToSecretKey
-
decryptUsingKey
-
getCipher
-