public class CryptManager
extends java.lang.Object
Constructor and Description |
---|
CryptManager() |
Modifier and Type | Method and Description |
---|---|
static java.security.KeyPair |
createNewKeyPair() |
static javax.crypto.SecretKey |
createNewSharedKey() |
static java.security.PublicKey |
decodePublicKey(byte[] par0ArrayOfByte) |
static byte[] |
decryptData(java.security.Key par0Key,
byte[] par1ArrayOfByte) |
static javax.crypto.SecretKey |
decryptSharedKey(java.security.PrivateKey par0PrivateKey,
byte[] par1ArrayOfByte) |
static byte[] |
encryptData(java.security.Key par0Key,
byte[] par1ArrayOfByte) |
static javax.crypto.Cipher |
func_151229_a(int p_151229_0_,
java.security.Key p_151229_1_) |
static byte[] |
getServerIdHash(java.lang.String par0Str,
java.security.PublicKey par1PublicKey,
javax.crypto.SecretKey par2SecretKey) |
public static javax.crypto.SecretKey createNewSharedKey()
public static java.security.KeyPair createNewKeyPair()
public static byte[] getServerIdHash(java.lang.String par0Str, java.security.PublicKey par1PublicKey, javax.crypto.SecretKey par2SecretKey)
public static java.security.PublicKey decodePublicKey(byte[] par0ArrayOfByte)
public static javax.crypto.SecretKey decryptSharedKey(java.security.PrivateKey par0PrivateKey, byte[] par1ArrayOfByte)
public static byte[] encryptData(java.security.Key par0Key, byte[] par1ArrayOfByte)
public static byte[] decryptData(java.security.Key par0Key, byte[] par1ArrayOfByte)
public static javax.crypto.Cipher func_151229_a(int p_151229_0_, java.security.Key p_151229_1_)