So i guess it is pretty obvious about what am i going to ask =)
Problem is, previousle we could just sha1 username and password separated by colon and here is the sha_pass_hash.
The problem i am facing right now, is that according to https://github.com/TrinityCore/TrinityCore/blob/86b98686a95e23247ecb774fb23ecd5b8d94b97b/src/server/game/Accounts/BattlenetAccountMgr.cpp#L177 Trinity now uses SHA256, so the hashes do not match anymore. The thing is, password length in database is 40 symbols (exactly as many as in sha1 hash), but sha256 hash length is 64 characters long. I am confused...
I've tried to recreate whole "Cryptography" thing on PHP but, guess what, failed.
Can somebody explain me how the password is generated nowadays?
Thank you for your attention.
Hello people ! (First of all, sorry for my bad english ...)
I have few trouble with using SOAP in 6.2.4
I tried something like this :
05. $client = new SoapClient(NULL, array( 06. 'location' => "http://127.0.0.1:7878/", 07. 'uri' => 'urn:TC', 08. 'style' => 'SOAP_RPC', 09. 'login' => [email protected]', 10. 'password' => 'mypass' 11. ));
12. $client->executeCommand(new SoapParam('server info', 'command'));
It gives me an 401 error.
Return looks like :
PHP Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Client] HTTP Error: 401 Unauthorized in /var/www/html/SOAP/index.php:12
#0 /var/www/html/SOAP/index.php(12): SoapClient->__call('executeCommand', Array)
#1 /var/www/html/SOAP/index.php(12): SoapClient->executeCommand(Object(SoapParam))
thrown in /var/www/html/SOAP/index.php on line 12
I already granted gmlevel 3 and activated SOAP in the worldserver.conf
Is login corresponding to the Email I created ? Or to the ID like 10#1 ? Or did I missed something else ?
Thanks for answers and sorry for disturbing you !
Edit : I've already checked and it keeps returning errors.