Class MojangCrypt

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

public final class MojangCrypt extends Object
  • Constructor Details Link icon

    • MojangCrypt Link icon

      public MojangCrypt()
  • Method Details Link icon

    • generateKeyPair Link icon

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

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

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

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

      public static Cipher getCipher(int mode, Key key)