changed digest module from SHA1 to SHA