treat binary data as binary data
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Thu, 30 Jan 2020 15:36:14 +0000 (16:36 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Sat, 1 Feb 2020 14:10:00 +0000 (15:10 +0100)
commit68a5e96d8375155a14d387251f1d36085ef2e97b
treedc25a734844c39b7b070dd9d86c51b0c65331ef1
parented00ce084c879854a353693cad71d552fedd44d2
treat binary data as binary data

The script ``file_crypt.py'' was opening both the source and the
sink in ``text mode'' which already messes with the input, then
encoding the result as UTF-8 encoded strings before writing
it back. Needless to say this was corrupting data all over the
place as soon as the payload contained non-ASCII bytes.
file_crypt.py