Changed from md5 to more secure hash function, sha256