public class EncryptionUtil extends Object
| Constructor and Description |
|---|
EncryptionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ServerToClientHandshakePacket |
createHandshakePacket(KeyPair pair,
byte[] token) |
static byte[] |
generateRandomToken() |
static long |
generateServerId() |
static byte[] |
getServerKey(KeyPair serverPair,
PublicKey key,
byte[] token) |
public static byte[] getServerKey(KeyPair serverPair, PublicKey key, byte[] token) throws InvalidKeyException
InvalidKeyExceptionpublic static ServerToClientHandshakePacket createHandshakePacket(KeyPair pair, byte[] token)
public static byte[] generateRandomToken()
public static long generateServerId()
Copyright © 2017–2019 NukkitX. All rights reserved.