geode/loader/hash/hash.hpp
2024-07-20 18:16:06 -03:00

17 lines
432 B
C++

#pragma once
#include <string>
#include <filesystem>
#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);
/**
* Calculates the SHA256 hash of the given data,
* used for verifying mods.
*/
std::string calculateHash(std::span<const uint8_t> data);