overhaul of metadata generation and management

This commit is contained in:
Chris Punches
2025-03-25 23:22:15 -04:00
parent 8b7e594d33
commit c27d91a573
10 changed files with 739 additions and 352 deletions

View File

@@ -55,3 +55,14 @@ std::string get_available_algorithms();
* @return String containing the hexadecimal representation of the checksum, or empty string on error
*/
std::string generate_file_checksum(const std::filesystem::path& file_path);
/**
* @brief Generates a checksum of a string using the configured hashing algorithm
*
* Uses OpenSSL to calculate a cryptographic hash of a string's contents
* based on the algorithm specified in the configuration.
*
* @param input_string The string to be hashed
* @return String containing the hexadecimal representation of the checksum, or empty string on error
*/
std::string generate_string_checksum(const std::string& input_string);