Class MojangCrypt

java.lang.Object
net.minestom.server.extras.mojangAuth.MojangCrypt

public final class MojangCrypt extends Object
  • Constructor Details

    • MojangCrypt

      public MojangCrypt()
  • Method Details

    • generateKeyPair

      @Nullable public static @Nullable KeyPair generateKeyPair()
    • digestData

      public static byte @Nullable [] digestData(String data, PublicKey publicKey, SecretKey secretKey)
    • decryptByteToSecretKey

      public static SecretKey decryptByteToSecretKey(PrivateKey privateKey, byte[] bytes)
    • decryptUsingKey

      public static byte[] decryptUsingKey(Key key, byte[] bytes)
    • getCipher

      public static Cipher getCipher(int mode, Key key)