geode/loader/hash/hash.hpp

18 lines
432 B
C++
Raw Normal View History

#pragma once
#include <string>
#include <filesystem>
2024-07-20 17:16:06 -04:00
#include <span>
std::string calculateSHA3_256(std::filesystem::path const& path);
std::string calculateSHA256(std::filesystem::path const& path);
std::string calculateSHA256Text(std::filesystem::path const& path);
2024-01-22 12:42:11 -05:00
2024-07-20 17:16:06 -04:00
/**
* Calculates the SHA256 hash of the given data,
* used for verifying mods.
*/
std::string calculateHash(std::span<const uint8_t> data);