I am implementing a code to produce a checksum from a string. I would just like to know the following below:
Why is the checksum produced directly from a string different from the checksum produced from a file containing the same string but was manually copied to the file using ctrl+c?
Edit: I'm not asking for the implementation. I'm asking why are they different to those who may have encountered this
Another example would be, why is the checksum produced from a file created by code different from the checksum produced from a file created manually where the string was copy-pasted?
But when I compared the two strings using a tool like WinMerge, it gives me the two identical strings.
Any enlightening answers are appreciated