dropbox / dropbox-api-content-hasher

Code to compute the Dropbox API's "content_hash"
Other
68 stars 30 forks source link

Add PHP implementation #2

Closed quinox closed 1 year ago

quinox commented 6 years ago

No unittests, but it works with milky-way-nasa.jpg:

$ md5sum milky-way-nasa.jpg 
f83992dc65261b1ba2e7703a89407e6e  milky-way-nasa.jpg

Y $ php dropbox_content_hasher.php milky-way-nasa.jpg 
dropbox_content_hasher.php: 375767d713ddece47a3e3f7f3afded815fdca8385d64efdd0e829cdf08a51e00
milky-way-nasa.jpg:         485291fa0ee50c016982abbfa943957bcd231aae0492ccbaa22c58e3997b35e0
fl4p commented 6 years ago

Great, works well.

Block size 1024 is a bit small though, it runs up to 10% faster if you increase it to 8*1024.

greg-db commented 6 years ago

Thanks!

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.