Re:How to securely encrypt a file with an insecure password ...
by ayende on Thursday January 20, 2022 @02:47AM
(#30005985)
As an aside, the code is also wrong and will fail in some rare cases because it assumes that the `read` syscall will only return partial information if you are at the end of the file. This is false, however, and will lead to data loss if happen.
Full post with details here: https://ayende.com/blog/196289-C/dont-assume-the-result-of-r...