elasticdog / transcrypt

transparently encrypt files within a git repository
MIT License
1.48k stars 104 forks source link

Potential fix for handling small files #117

Closed jmurty closed 2 years ago

jmurty commented 3 years ago

See #116

The read -rn 8 command doesn't seem to cope with small files, and does all kinds of strange things when I try running it manually on latest macOS to test, including:

Overall the head -c8 approach used everywhere else to do this work is probably safer, and should work with small files as well.