Porytiles
Loading...
Searching...
No Matches
porytiles2::StreamDigest Class Reference

Computes the MD5 digest of an input stream. More...

#include <stream_digest.hpp>

Public Member Functions

std::string digest (std::istream &stream) const
 Computes the MD5 digest of an input stream.
 

Detailed Description

Computes the MD5 digest of an input stream.

Definition at line 17 of file stream_digest.hpp.

Member Function Documentation

◆ digest()

std::string porytiles2::StreamDigest::digest ( std::istream &  stream) const
inline

Computes the MD5 digest of an input stream.

Reads the given input stream and computes the MD5 hash of its contents. The stream is read from its current position until the end. The stream's position is not restored after reading. The MD5 algorithm processes the data in 512-bit blocks and produces a 128-bit hash value represented as a 32-character hexadecimal string.

Parameters
streamThe input stream to digest.
Returns
A string representing the MD5 digest in lowercase hexadecimal format.

Definition at line 30 of file stream_digest.hpp.


The documentation for this class was generated from the following file: