Function hash
Calculate a hash of a Stream
|  | $stream | Stream to calculate the hash for | 
| string | $algo | Hash algorithm (e.g. md5, crc32, etc) | 
| boolean | $rawOutput = false | Whether or not to use raw output | 
| 
			string
		 | Returns the hash of the stream | 
| 
			RuntimeException
		 | on error. |