Generate md5/sha1/sha256/sha512 hash based on the content of a file and append to it.