Examples of RSACrypto


Examples of uk.co.thomasc.steamkit.util.crypto.RSACrypto

    // generate an AES session key
    final byte[] sessionKey = CryptoHelper.GenerateRandomBlock(32);

    // rsa encrypt it with the public key for the universe we're on
    byte[] cryptedSessionKey = null;
    final RSACrypto rsa = new RSACrypto(KeyDictionary.getPublicKey(steamClient.getConnectedUniverse()));
    cryptedSessionKey = rsa.encrypt(sessionKey);

    final byte[] loginKey = new byte[20];
    System.arraycopy(callback.getLoginKey().getBytes(), 0, loginKey, 0, callback.getLoginKey().length());

    // aes encrypt the loginkey with our session key
View Full Code Here

Examples of uk.co.thomasc.steamkit.util.crypto.RSACrypto

      if (rsaJSON.success != true) {
        return null;
      }

      //RSA Encryption
      final RSACrypto rsa = new RSACrypto(new BigInteger(1, SteamWeb.hexToByte(rsaJSON.publickey_exp)), new BigInteger(1, SteamWeb.hexToByte(rsaJSON.publickey_mod)), false);

      final byte[] encodedPassword = rsa.encrypt(password.getBytes());
      final String encryptedBase64Password = new BASE64Encoder().encode(encodedPassword);

      SteamResult loginJson = null;
      //String cookies;
      do {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.