src/Helper/Stream.php
public function hash(string $algo = 'sha256'): string
    {
        $this->rewind();

        $hc = \hash_init($algo);
        \hash_update_stream($hc, $this->handle);
        return \hash_final($hc);
    }
public function hash(string $algo = 'sha256'): string
    {
        $this->rewind();

        $hc = \hash_init($algo);
        \hash_update_stream($hc, $this->handle);
        return \hash_final($hc);
    }
[hash description]
@param  string $algo [description]
@return string       [description]