tracker support authkey

This commit is contained in:
xiaomlove
2021-06-03 21:13:59 +08:00
parent 272b716f35
commit ed68efeeea
6 changed files with 117 additions and 20 deletions
+4 -2
View File
@@ -51,8 +51,10 @@ class Test extends Command
public function handle()
{
$torrentRep = new TorrentRepository();
$r = $torrentRep->encryptDownHash(1, 1);
dd($r, $torrentRep->decryptDownHash($r,1));
$r = $torrentRep->getTrackerReportAuthKey(1, 1, true);
// $r = $torrentRep->resetTrackerReportAuthKeySecret(1);
// dd($r);
dd($r, $torrentRep->checkTrackerReportAuthKey($r));
}
}