Title: InfoHash
Description: Provides the methods for Calculating Hash of the info Value of the Torrent File
Copyright: Copyright (c) 2004
Company: CSI5321
Method Detail |
private static java.util.Map createInfoMap(java.util.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 static java.lang.String getBencodedInfoMap(java.util.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 static java.lang.String getInfoHash(java.util.Map metaFileMap)
Description: Calculates the SHA1 encoding on the infoMap
metaFileMap
- MapIOException
- NoSuchAlgorithmException
-