I have a situation where I would like to check if a file has been changed before re-uploading it to Box (the change may have occurred outside of Box, and I want to see if it is worth replacing the current version on Box). The best way to do this would be to compare a hash, especially as it is easy to get the sha1 hash from Box.
However, if I generate a sha1 hash of the unmodified file using nodeJs crypto, it is not the same as the sha1 hash created by Box. Does Box include other data (such as filename or dates) when generating the hash, if so is there a description of how I could create a matching hash if the data of the file itself has not changed?
Question
How is sha1 hash generated
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.