A hash is not encryption and does not authenticate a file’s sender. Do not store passwords using plain SHA. Decimal uses an unsigned big-endian integer; binary keeps leading zeroes
File reading and chunked hashing can be cancelled; cancellation clears internal state and discards the result