diff options
author | zyp <zyp@localhost> | 2006-05-13 18:23:51 +0200 |
---|---|---|
committer | zyp <zyp@localhost> | 2006-05-13 18:23:51 +0200 |
commit | 77e467c9bae74863016e028008290e5f6fd1bca3 (patch) | |
tree | 9ad6856c86eb1564be9b199ebab61da589854adb /README | |
parent | 0c4fc1e72770fc78d87891e5c031272fca59e409 (diff) |
[project @ zyp-20060513162351-bc3485cc1b8e0915]
[project @ 30]
Added distutils metadata, MANIFEST.in, README and COPYING.
Diffstat (limited to 'README')
-rw-r--r-- | README | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -0,0 +1,36 @@ +Multihash +========= + +Multihash is a library for hashing with multiple algorithms at the same time. +The purpose is to enable users to calculate multiple checksums as easy as a +single checksum, without unnecessary overhead. + +Available algorithms: + + * CRC32 (crc32) + * Ed2k (ed2k) + * MD5 (md5) + * SHA1 (sha1) + +Installation +============ + +For manual installation; run: + + ./setup.py build + sudo ./setup.py install + +Usage +===== + +>>> import multihash +>>> c = multihash.CRC32() +>>> c.update('foo') +>>> c.digest() +'8c736521' +>>> m = multihash.Multihash('md5', 'sha1') +>>> m.update('foo') +>>> m.md5() +'acbd18db4cc2f85cedef654fccc4a4d8' +>>> m.sha1() +'0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33' |