protected function getStreamSHA1($stream)
    {
        Util::rewindStream($stream);
        $context = hash_init('sha1');
        hash_update_stream($context, $stream);
        return hash_final($context);
    }
protected function getStreamSHA1($stream)
    {
        Util::rewindStream($stream);
        $context = hash_init('sha1');
        hash_update_stream($context, $stream);
        return hash_final($context);
    }
protected function getStreamSHA1 ( $ stream ) { Util :: rewindStream ( $ stream ) ; $ context = hash_init ( 'sha1' ) ; hash_update_stream ( $ context , $ stream ) ; return hash_final ( $ context ) ; }
get sha1 hash from stream

@param resource $stream
@return string str1 hash
get sha1 hash from stream