Get hash of stream