aboutsummaryrefslogtreecommitdiffstats
path: root/FuseArchive
diff options
context:
space:
mode:
Diffstat (limited to 'FuseArchive')
-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()
+