chiark / gitweb /
Add 'base91-python/' from commit '749aa78cf12496cca4b9bf3eafe045809fc0da10'
[secnet.git] / base91-python / README.md
diff --git a/base91-python/README.md b/base91-python/README.md
new file mode 100644 (file)
index 0000000..580df98
--- /dev/null
@@ -0,0 +1,15 @@
+base91-python
+=============
+
+A python implementation of Base91 as described on http://base91.sourceforge.net/ , licenced under the New BSD License.
+
+Usage
+-----
+
+       import base91
+
+       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'
+