Home | Trees | Indices | Help |
|
---|
|
Sha1 Gnutella - Readout files and calculate the sha1-hashes. Output them base32 encoded.
Usage:
Output: <sha1-hash1> <filename1> <sha1-hash2> <filename2>
|
|||
|
|||
|
|||
|
|
|||
__depends__ =
|
|||
FILE_FRAGMENT_SIZE_BYTES = 10485760 The length of the segments to read in one go. |
|||
filepath =
|
|
Calculate the sha1 hash and output it base32 encoded as is required by magnet links.
|
Test different settings of the fragment_size. Result: The fragment_size is almost irrelevant. Anything between 512kiB and 10MiB offers about the same speed.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jan 7 11:36:57 2009 | http://epydoc.sourceforge.net |