diff options
author | Steve Slaven <bpk@hoopajoo.net> | 2009-08-07 21:48:27 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2009-08-07 21:48:27 (GMT) |
commit | 1e5fe982e61445f5335ec941b3f602d83fafedff (patch) | |
tree | a1c4221f91c16a0340c609020d4604a5ec707b4d /FuseArchive | |
parent | 1afe6dad31b7e4b9c7143bd50c00c61d6a93011b (diff) | |
download | fusearchive-1e5fe982e61445f5335ec941b3f602d83fafedff.zip fusearchive-1e5fe982e61445f5335ec941b3f602d83fafedff.tar.gz fusearchive-1e5fe982e61445f5335ec941b3f602d83fafedff.tar.bz2 |
Digest wrapper
Diffstat (limited to 'FuseArchive')
-rw-r--r-- | FuseArchive/Digest.py | 7 |
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() + |