The other day I learnt that PHP has the ability to incrementally hash a stream of data.
`hash_update_stream` for working with an actual resource. 
`hash_update` if you have access to the data (string) and not the resource.
                    
            
                
                Back