Hi,
Seems many like me have problems with generating the passkeys.
So could somebody please tell exactly how to save the hash?
Originally the hash is looking like this db8d02757202c0516a6cb98647ff3f1fa75b6b69 how and with what to convert it to fit into binary(20) field?
When we are crating the passkey should we unconvert it and then insert it into the "mixer"?
And one more question: I noticed that the user passkey field is int, but the created passkey maybe is not a int?
Thank you!
Hmm... Strange...
Okay here is that what i do - with the "UNHEX" sql function i "unhex" the info_hash and insert the torrent data into the db.
Before i send the edited torrent file i insert into the passkey mix the "hexed"(who i hexed with "HEX" sql function) passkey, but it still says "unregistered torrent pass".
Yes i generate the passkeys in the same way...
I unhex the hash when i add the torrent into the database and hex it when i'm inserting it to the passkey mix, but it still says "unregistered torrent pass".
Can the database encoding be a problem?
I'm using utf8_unicode_ci and the unhexed info_hash into the database is looking like ")V���(Q����2���O".
Should it be like this?
I'dont have any other idea where the problem could be...
The pack() function may hex them, but if i dont hex the data from the database pack() cant read the characters and display errors.
For that I'm wondering if there is any problem with the database encoding.
See the picture above.
I've made some tests.
First i checked what torrent pass will generate torrent_pass_version.php and then compare it with the torrent pass that my code generates and insert into the torrent and the result was that they are the same.
So maybe the problem is not there?