Fixed a bug with the generation of the sha1 output string.