mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Last minute changes for 1.6.0 + Changes from #13
- Some last minute changes made just before releasing 1.6.0 to Minecraft Forums - Added changes from pull #13 allowing to remove the BouncyCastle library
This commit is contained in:
parent
551c152c7c
commit
ff950a5248
6 changed files with 8 additions and 13 deletions
|
|
@ -7,8 +7,6 @@ using java.security;
|
|||
using java.security.spec;
|
||||
using javax.crypto;
|
||||
using javax.crypto.spec;
|
||||
using Org.BouncyCastle.Crypto;
|
||||
using Org.BouncyCastle.Crypto.Parameters;
|
||||
|
||||
namespace MinecraftClient
|
||||
{
|
||||
|
|
@ -27,9 +25,9 @@ namespace MinecraftClient
|
|||
|
||||
public static SecretKey GenerateAESPrivateKey()
|
||||
{
|
||||
CipherKeyGenerator var0 = new CipherKeyGenerator();
|
||||
var0.Init(new KeyGenerationParameters(new Org.BouncyCastle.Security.SecureRandom(), 128));
|
||||
return new SecretKeySpec(var0.GenerateKey(), "AES");
|
||||
AesManaged aes = new AesManaged();
|
||||
aes.KeySize = 128; aes.GenerateKey();
|
||||
return new SecretKeySpec(aes.Key, "AES");
|
||||
}
|
||||
|
||||
public static byte[] getServerHash(String toencode, PublicKey par1PublicKey, SecretKey par2SecretKey)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue