>>15
In that specific case, you shouldn't be calling out to system() ever. Read the file yourself and use sha1().