def encrypt_password(self, email, password):
        """
        Get the RSA key for the user and encrypt the users password
        :param email: steam account
        :param password: password for account
        :return: encrypted password
        """
        res = self.session.http.get(self._get_rsa_key_url, params=dict(username=email, donotcache=self.donotcache))
        rsadata = self.session.http.json(res, schema=self._rsa_key_schema)

        rsa = RSA.construct((rsadata["publickey_mod"], rsadata["publickey_exp"]))
        cipher = PKCS1_v1_5.new(rsa)
        return base64.b64encode(cipher.encrypt(password.encode("utf8"))), rsadata["timestamp"]
def encrypt_password(self, email, password):
        """
        Get the RSA key for the user and encrypt the users password
        :param email: steam account
        :param password: password for account
        :return: encrypted password
        """
        res = self.session.http.get(self._get_rsa_key_url, params=dict(username=email, donotcache=self.donotcache))
        rsadata = self.session.http.json(res, schema=self._rsa_key_schema)

        rsa = RSA.construct((rsadata["publickey_mod"], rsadata["publickey_exp"]))
        cipher = PKCS1_v1_5.new(rsa)
        return base64.b64encode(cipher.encrypt(password.encode("utf8"))), rsadata["timestamp"]
def encrypt_password ( self , email , password ) : res = self . session . http . get ( self . _get_rsa_key_url , params = dict ( username = email , donotcache = self . donotcache ) ) rsadata = self . session . http . json ( res , schema = self . _rsa_key_schema ) rsa = RSA . construct ( ( rsadata [ "publickey_mod" ] , rsadata [ "publickey_exp" ] ) ) cipher = PKCS1_v1_5 . new ( rsa ) return base64 . b64encode ( cipher . encrypt ( password . encode ( "utf8" ) ) ) , rsadata [ "timestamp" ]
Get the RSA key for the user and encrypt the users password
        :param email: steam account
        :param password: password for account
        :return: encrypted password
Get the RSA key for the user and encrypt the users password : param email : steam account : param password : password for account : return : encrypted password