Title: InfoHash
Description: Provides the methods for Calculating Hash of the info Value of the Torrent File
Copyright: Copyright (c) 2004
Company: CSI5321
Constructor Detail |
public InfoHash()
Method Detail |
private Map createInfoMap(Map metaFileMap)
Description: Takes a Map of the meta file and returns a Map containing only info Key-Value pairs
metaFileMap
- obtained from the Torrent ( meta File )private String getBencodedInfoMap2(Map infoMap)
Description: Takes a Map of info Key-Value pairs and B-encodes the info Key_Value pair
infoMap
- of info Key-value pairpublic String getInfoHash(Map metaFileMap)
Description: Calculates the SHA1 encoding on the infoMap
metaFileMap
- MapIOException
- NoSuchAlgorithmException
-