Added integrity protection with SHA256 hash.