Reactive state and methods returned by useHash.
const state: UseHashReturn = useHash();await state.hash("sha256", "data");console.log(state.digest.value); Copy
const state: UseHashReturn = useHash();await state.hash("sha256", "data");console.log(state.digest.value);
The most recent hash digest (hex-encoded).
The algorithm used for the last hash.
Whether a hash operation is in progress.
Error from the last hash attempt, if any.
Hash data with the specified algorithm.
Clear all reactive state.
Reactive state and methods returned by useHash.
Example