adjusted sha256 and sha1 generation for better readability.