Hashing utilities. More...
#include <Hashing.hpp>
Static Public Member Functions | |
static std::string | crc32 (const Resource::File &file) |
Calculate the CRC32 hash of the specified file. More... | |
static std::string | crc32 (std::istream &stream) |
Calculate the CRC32 hash of the data supplied by the stream. More... | |
static std::string | crc32 (std::string &text) |
Calculate the CRC32 hash of the supplied string. More... | |
static std::string | keccak (const Resource::File &file) |
Calculate the Keccak hash of the specified file. More... | |
static std::string | keccak (std::istream &stream) |
Calculate the Keccak hash of the data supplied by the stream. More... | |
static std::string | keccak (std::string &text) |
Calculate the Keccak hash of the supplied string. More... | |
static std::string | md5 (const Resource::File &file) |
Calculate the MD5 hash of the specified file. More... | |
static std::string | md5 (std::istream &stream) |
Calculate the MD5 hash of the data supplied by the stream. More... | |
static std::string | md5 (std::string &text) |
Calculate the MD5 hash of the supplied string. More... | |
static std::string | sha1 (const Resource::File &file) |
Calculate the SHA-1 hash of the specified file. More... | |
static std::string | sha1 (std::istream &stream) |
Calculate the SHA-1 hash of the data supplied by the stream. More... | |
static std::string | sha1 (std::string &text) |
Calculate the SHA-1 hash of the supplied string. More... | |
static std::string | sha256 (const Resource::File &file) |
Calculate the SHA-256 hash of the specified file. More... | |
static std::string | sha256 (std::istream &stream) |
Calculate the SHA-256 hash of the data supplied by the stream. More... | |
static std::string | sha256 (std::string &text) |
Calculate the SHA-256 hash of the supplied string. More... | |
static std::string | sha3 (const Resource::File &file) |
Calculate the SHA-3 hash of the specified file. More... | |
static std::string | sha3 (std::istream &stream) |
Calculate the SHA-3 hash of the data supplied by the stream. More... | |
static std::string | sha3 (std::string &text) |
Calculate the SHA-3 hash of the supplied string. More... | |
Hashing utilities.
|
inlinestatic |
Calculate the CRC32 hash of the specified file.
FileNotFoundException | if the file does not exist or is not a regular file |
CouldNotOpenException | if a stream onto the file could not be opened |
|
inlinestatic |
Calculate the CRC32 hash of the data supplied by the stream.
|
inlinestatic |
Calculate the CRC32 hash of the supplied string.
|
inlinestatic |
Calculate the Keccak hash of the specified file.
FileNotFoundException | if the file does not exist or is not a regular file |
CouldNotOpenException | if a stream onto the file could not be opened |
|
inlinestatic |
Calculate the Keccak hash of the data supplied by the stream.
|
inlinestatic |
Calculate the Keccak hash of the supplied string.
|
inlinestatic |
Calculate the MD5 hash of the specified file.
FileNotFoundException | if the file does not exist or is not a regular file |
CouldNotOpenException | if a stream onto the file could not be opened |
|
inlinestatic |
Calculate the MD5 hash of the data supplied by the stream.
|
inlinestatic |
Calculate the MD5 hash of the supplied string.
|
inlinestatic |
Calculate the SHA-1 hash of the specified file.
FileNotFoundException | if the file does not exist or is not a regular file |
CouldNotOpenException | if a stream onto the file could not be opened |
|
inlinestatic |
Calculate the SHA-1 hash of the data supplied by the stream.
|
inlinestatic |
Calculate the SHA-1 hash of the supplied string.
|
inlinestatic |
Calculate the SHA-256 hash of the specified file.
FileNotFoundException | if the file does not exist or is not a regular file |
CouldNotOpenException | if a stream onto the file could not be opened |
|
inlinestatic |
Calculate the SHA-256 hash of the data supplied by the stream.
|
inlinestatic |
Calculate the SHA-256 hash of the supplied string.
|
inlinestatic |
Calculate the SHA-3 hash of the specified file.
FileNotFoundException | if the file does not exist or is not a regular file |
CouldNotOpenException | if a stream onto the file could not be opened |
|
inlinestatic |
Calculate the SHA-3 hash of the data supplied by the stream.
|
inlinestatic |
Calculate the SHA-3 hash of the supplied string.