aboutsummaryrefslogtreecommitdiffstats
path: root/misc/python/test.py
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-08-23 05:17:46 +0000
committerlloyd <[email protected]>2006-08-23 05:17:46 +0000
commit23a3fface9cb26c1a4bc0dfa50ef8c617c982df0 (patch)
treeb4c8445b9f2717efc0f5097c01daee7e136e1874 /misc/python/test.py
parent82ce25b181af3dfcc298f12d4b7328bd049089de (diff)
Finally get basic filters objects to work properly
Diffstat (limited to 'misc/python/test.py')
-rwxr-xr-xmisc/python/test.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/python/test.py b/misc/python/test.py
index c73cc9369..aa30ab5d6 100755
--- a/misc/python/test.py
+++ b/misc/python/test.py
@@ -3,17 +3,17 @@
import sys, botan
def do_hash(input):
- pipe = botan.Pipe(botan.Filter("MD5"), botan.Filter("Hex_Encoder"))
+ pipe = botan.Pipe(botan.Filter("Hex_Encoder"),
+ botan.Filter("Hex_Decoder"))
- print pipe
pipe.start_msg()
pipe.write(input)
pipe.end_msg()
- return pipe.read_all()
+ return pipe.read_all_as_string()
def main():
- print do_hash("foo")
+ print do_hash("hi chappy")
if __name__ == "__main__":
sys.exit(main())