static string
generateHash(mixed $value, string $namespace = '')
Generates a SHA-256 hash for the given value. Optionally, a namespace string can be passed. Calling this method will the same values, but different namespaces, will return different hashes.
Parameters mixed $value The value to hash string $namespace Optional. The namespace Return Value string The SHA-256 hash