aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2009-08-07 21:48:27 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2009-08-07 21:48:27 (GMT)
commit1e5fe982e61445f5335ec941b3f602d83fafedff (patch)
treea1c4221f91c16a0340c609020d4604a5ec707b4d
parent1afe6dad31b7e4b9c7143bd50c00c61d6a93011b (diff)
downloadfusearchive-1e5fe982e61445f5335ec941b3f602d83fafedff.zip
fusearchive-1e5fe982e61445f5335ec941b3f602d83fafedff.tar.gz
fusearchive-1e5fe982e61445f5335ec941b3f602d83fafedff.tar.bz2
Digest wrapper
-rw-r--r--FuseArchive/Digest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/FuseArchive/Digest.py b/FuseArchive/Digest.py
new file mode 100644
index 0000000..12ff0f7
--- /dev/null
+++ b/FuseArchive/Digest.py
@@ -0,0 +1,7 @@
+import sha
+
+
+# Return a binary digest
+def compute( data ):
+ return sha.new( data ).digest()
+