'Return Torrent info hash'

@property
def info_hash(self):

    import hashlib
    hash = hashlib.sha1()
    info_data = encode_dictionary(self.content[u'info'])
    hash.update(info_data)
    return str(hash.hexdigest().upper())
