title: How do I convert a Bit Torrent info_hash (obtained from Wireshark) to a SHA1 hash
body: <p>I'm running Snort which detects some P2P activity, specifically the BitTorrent announce request. I see the HTTP GET /announce.php?info_hash=XXX... request and I'm trying to convert this XXX into a proper SHA1 hash to try and get an idea of what is being downloaded.</p>
  
  <p>I've read various things that say this is URL encoded, and others that say just remove the % character - however I am unable to reproduce this. </p>
  
  <p>Can anyone suggest how to do this?</p>