hash_update() – Adding Data to an Active Hash Context

hash_update() is a PHP function that appends a string of data to an active hash computation context created by hash_init(), takes a resource context and a string data as parameters, and returns TRUE upon successful update of the hash digest.

Laravel Tech Community
Laravel Tech Community
Laravel Tech Community
hash_update() – Adding Data to an Active Hash Context
bool hash_update ( resource $context, string $data )

The function appends the provided $data string to the hash computation context represented by $context, which must be a resource returned by hash_init().

Parameters

context

The hash computation context returned by hash_init().

data

The data string to be added to the hash digest.

Return value

Returns TRUE on success.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

SecurityPHPHashhash_update
Laravel Tech Community
Written by

Laravel Tech Community

Specializing in Laravel development, we continuously publish fresh content and grow alongside the elegant, stable Laravel framework.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.