Only available memory (i.e. you have to be able to load the string as a whole). The hash output always has the same length, though.
If you want to hash a large data blob that won't fit into memory you must process it in chunks. PHP has some functions for it (see https://www.php.net/manual/en/ref.hash.php). The basic steps are:
Create a hashing structure (hash_init)
Read chunks, update the hash structure (hash_update)
After the last chunk, finalize the hash and get the output (hash_final)
For your convenience, PHP has hash_update_file and hash_update_stream wrappers.
Only available memory (i.e. you have to be able to load the string as a whole). The hash output always has the same length, though.
If you want to hash a large data blob that won't fit into memory you must process it in chunks. PHP has some functions for it (see https://www.php.net/manual/en/ref.hash.php). The basic steps are:
hash_init)hash_update)hash_final)For your convenience, PHP has
hash_update_fileandhash_update_streamwrappers.