/** * Retourne le sha1 (hash) du torrent * */ public static function getTorrentHash($decodedTorrent) { return sha1(Bencode::bencode($decodedTorrent['info'])); }