Updated hashing method to sha256