oostendo / python-zxing

python wrapper for the ZXing barcode library
http://code.google.com/p/zxing
274 stars 103 forks source link

Use latin1, --pure_barcode and no universal_newlines #19

Open parmegv opened 7 years ago

parmegv commented 7 years ago

latin1 allows us to handle ciphertext (tested with ASCON cipher).

pure_barcode is required to get binary data

universal_newlines was assuming all \r were \n, but with encrypted data it is not the case.

oostendo commented 7 years ago

I guess this looks like you've customized it for a specific application -- that's great, and I'm glad it works for you. I guess to accept this I would ask that all of these changes could be parameter controlled in the decode() function similar to what you did for pure_barcode.