← All docs
hash_final()
Finalizes an incremental hashing context and returns the digest (hex, or raw bytes when $binary). Provided by the compiler-injected hash prelude in compiled code.
hash_final()
function hash_final(HashContext $context, bool $binary = false): string
Finalizes an incremental hashing context and returns the digest (hex, or raw bytes when $binary). Provided by the compiler-injected hash prelude in compiled code.
Parameters:
$context(HashContext)$binary(bool), defaultfalse, optional
Returns: string
Availability
- Compiled (AOT): supported through the compiler-injected hash prelude.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/string/hash_final.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how hash_final is implemented in the compiler, see the internals page.