- open_hash_stream(+OrgStream, -HashStream, +Options) is det
- Open a filter stream on OrgStream that maintains a hash. The
hash can be retrieved at any time using stream_hash/2. Provided
options:
- algorithm(+Algorithm)
- One of
md5, sha1, sha224, sha256, sha384 or
sha512. Default is sha1.
- close_parent(+Bool)
- If
true (default), closing the filter stream also closes the
original (parent) stream.