Hi @dunglas.
When using password authentication while controlling TOR, the auth password must be generated using the command:
~> tor --hash-password "random_password"
which will generate a hashed password beginning with 16:DEE07A96.... (just an example).
So To control tor the php code must be :
$tc = new TorControl\TorControl(
array(
'hostname' => 'localhost',
'port' => 9051,
'password' => '16:DEE07A96A....',
// the generated password
'authmethod' => 1,
)
);
I think this trick must be mentioned in the README file.
Hi @dunglas.
When using
password authenticationwhile controlling TOR, the auth password must be generated using the command:~> tor --hash-password "random_password"which will generate a
hashed passwordbeginning with16:DEE07A96....(just an example).So To control tor the php code must be :
I think this trick must be mentioned in the
READMEfile.