chiark / gitweb /
Update README.md
authorAdrien Béraud <adrienberaud@gmail.com>
Fri, 7 Sep 2012 15:04:12 +0000 (18:04 +0300)
committerAdrien Béraud <adrienberaud@gmail.com>
Fri, 7 Sep 2012 15:04:12 +0000 (18:04 +0300)
README.md

index 51216f5b2cc13d6e9b05055458e437b3a408b7b3..580df9880e45439cfa78883feeee10dc02101cac 100644 (file)
--- a/README.md
+++ b/README.md
@@ -6,14 +6,10 @@ A python implementation of Base91 as described on http://base91.sourceforge.net/
 Usage
 -----
 
-> import base91
-> 
-> base91.encode('test')
+       import base91
 
-result: fPNKd
+       base91.encode('test')                                           #result: 'fPNKd'
+       base91.encode(b'\xfe\x03\x00W\xa9\xbc')         #result: 'VLv(GdNE'
 
-> 
-> base91.decode('8D9Kc)=/2$WzeFui#G9Km+<{VT2u9MZil}[A')
-
-result: May a moody baby doom a yam?\n
+       base91.decode('8D9Kc)=/2$WzeFui#G9Km+<{VT2u9MZil}[A') # result: 'May a moody baby doom a yam?\n'