aboutsummaryrefslogtreecommitdiffstats
path: root/misc/python/test.py
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-06-03 05:55:51 +0000
committerlloyd <[email protected]>2006-06-03 05:55:51 +0000
commit5d0c13a8bf3da41581101b8fe7805367163f5b0f (patch)
tree50db10d103b37d108750f4cf8c8aba16d2df6293 /misc/python/test.py
parent82d6935b37eebc95196fb8e2c5228f6839c92232 (diff)
Move Boost.Python wrapper from doc/ to misc/
Diffstat (limited to 'misc/python/test.py')
-rwxr-xr-xmisc/python/test.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/misc/python/test.py b/misc/python/test.py
new file mode 100755
index 000000000..c73cc9369
--- /dev/null
+++ b/misc/python/test.py
@@ -0,0 +1,19 @@
+#!/usr/bin/python
+
+import sys, botan
+
+def do_hash(input):
+ pipe = botan.Pipe(botan.Filter("MD5"), botan.Filter("Hex_Encoder"))
+
+ print pipe
+ pipe.start_msg()
+ pipe.write(input)
+ pipe.end_msg()
+
+ return pipe.read_all()
+
+def main():
+ print do_hash("foo")
+
+if __name__ == "__main__":
+ sys.exit(main())