<p>Currently not, but that's not a bad idea and probably worth adding to <a href="https://feedback.buildwithcraft.com" rel="nofollow">https://feedback.buildwithcraft.com</a>.</p>

<p>During an auto-update, the file name of the patch file that is downloaded happens to be the MD5 sum of the file so the Craft client can verify the integrity of the downloaded file, but there isn't a mechanism like that in place currently for full Craft downloads.</p>

CC BY-SA 3.0
2015-07-20T03:55:26.413Z
2015-07-20T03:55:26.413Z
Brad Bell
<p>It is possible to <a href="https://craftcms.stackexchange.com/questions/225/is-there-a-way-i-can-programmatically-download-the-latest-version-of-craft/226#226">programmatically download the latest version of craft</a>. But is it also possible to get this file's md5 sum directly from the server?</p>

<p>I'm thinking about something like this:</p>

<pre><code>http://buildwithcraft.com/latest.hash
</code></pre>

<p>I am asking this because I'm currently writing a <a href="http://docs.saltstack.com/en/latest/" rel="nofollow noreferrer">Salt</a> formula to install Craft. I intend to use <a href="http://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.managed" rel="nofollow noreferrer">salt.states.files.managed</a>, which is capable of downloading a file only if it has a different md5 sum than an already downloaded version of the file.</p>

<install><setup>
Is it possible to get the md5 hash of Craft's latest version from the download server?
# Is it possible to get the md5 hash of Craft's latest version from the download server?

(Asked by: username_0 on 2015-07-19)

It is possible to programmatically download the latest version of craft. But is it also possible to get this file's md5 sum directly from the server?
I'm thinking about something like this:
http://buildwithcraft.com/latest.hash

I am asking this because I'm currently writing a Salt formula to install Craft. I intend to use salt.states.files.managed, which is capable of downloading a file only if it has a different md5 sum than an already downloaded version of the file.

**Tags:** install, setup


---

## 1 answers

### Answer by username_1 on 2015-07-20. Score: 3 | Accepted answer

Currently not, but that's not a bad idea and probably worth adding to <https://feedback.buildwithcraft.com>.

During an auto-update, the file name of the patch file that is downloaded happens to be the MD5 sum of the file so the Craft client can verify the integrity of the downloaded file, but there isn't a mechanism like that in place currently for full Craft downloads.


---

