I'm trying to send a login request to Steam, in order to retrieve a session ID and other cookies however, I'm having trouble encrypting the Steam account's password correctly.
I don't really understand how this RSA stuff works, here's an example of it working (apparently). https://github.com/SzymonLisowiec/php-steamlogin/blob/master/main.php If you see the login()
method. They use a couple of libraries to do it.
I'm wondering if there's an easier way? And preferably a PHP 7/7.1 way (as the above example does lots of deprecated methods).
EDIT:
No idea if this is of any use, but when logging into Steam, a request it made to https://store.steampowered.com/login/dologin/
with two parameters: username
and donotcache
. A response is then given with the following:
"success": true
"publickey_mod": "xxx"
"publickey_exp": "010001"
"timestamp": "1029970100000"
"token_gid": "xxx"