torrent downhash encrypt by hashids

This commit is contained in:
xiaomlove
2021-06-02 19:01:28 +08:00
parent 1985585e22
commit 5fdeaafd9e
6 changed files with 116 additions and 37 deletions

View File

@@ -50,7 +50,9 @@ class Test extends Command
*/
public function handle()
{
$torrentRep = new TorrentRepository();
$r = $torrentRep->encryptDownHash(1, 1);
dd($r, $torrentRep->decryptDownHash($r,1));
}
}