From 77e467c9bae74863016e028008290e5f6fd1bca3 Mon Sep 17 00:00:00 2001 From: zyp Date: Sat, 13 May 2006 16:23:51 +0000 Subject: [project @ zyp-20060513162351-bc3485cc1b8e0915] [project @ 30] Added distutils metadata, MANIFEST.in, README and COPYING. --- README | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 README (limited to 'README') diff --git a/README b/README new file mode 100644 index 0000000..256ba78 --- /dev/null +++ b/README @@ -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' -- cgit v1.2.3