18 lines
354 B
C++
18 lines
354 B
C++
/**
|
|
* SHA256 hashing utilities
|
|
*
|
|
* Provides SHA256 hashing for strings and files, used for cache invalidation.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <filesystem>
|
|
#include <string>
|
|
#include <string_view>
|
|
|
|
namespace rex::crypto {
|
|
|
|
std::string sha256(std::string_view data);
|
|
std::string sha256_file(const std::filesystem::path& path);
|
|
|
|
} // namespace rex::crypto
|