Dear all,
I upload text files to the server, then I need to get the Hash values to compare the files in server with files in client (PC / Android) to write confirm script / script to verify files which are identical.
if anyone help me to generate a hash value for a file or folder is highly appreciated
Thank you
Leulae
Hash value for a file or folder
-
- Posts: 1795
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Hash value for a file or folder
You can generate a MD5 hash for a file using the diagnostics function. See more here:
http://www.csprousers.org/help/CSPro/di ... ction.html
http://www.csprousers.org/help/CSPro/di ... ction.html
Re: Hash value for a file or folder
Note that if you use the function syncfile(GET,...) with CSWeb, Dropbox or Bluetooth sync, CSPro already calculates the hash and only downloads the file if the hash on the server is different. Unfortunately this is not for syncfile(PUT,...) so for that you would need to calculate your own hash.