mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 09:55:34 -05:00
17 lines
432 B
C++
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);
|