tv42 / zbase32

Human-oriented encoding for binary data
MIT License
42 stars 10 forks source link

Add support for streaming using io.Writer and io.Reader #3

Closed corvus-ch closed 5 years ago

corvus-ch commented 7 years ago

As discussed in #2. I tried to keep it as brief as possible.

tv42 commented 5 years ago

I'm sorry, this adds a crazy amount of code, and fails to handle read boundaries correctly; decode is not safe to just naively concatenate.

$ echo foo|zbase32-encode
c3zs6no
$ echo c3z|zbase32-decode|od -a
0000000   f   n
0000002
$ echo s6no|zbase32-decode|od -a
0000000   7 enq
0000002
$

Rejected.