Anti-Cheat Toolkit  2023.2.6
Multi-purpose anti-cheat solution for Unity Engine
BuildHashes Class Reference

Public Member Functions

bool HasFileHash (string hash)
 
void PrintToConsole ()
 

Properties

string BuildPath [get]
 
IReadOnlyList< FileHashFileHashes [get]
 
string SummaryHash [get]
 
double DurationSeconds [get, set]
 

Detailed Description

Contains hashes for the application build.

Member Function Documentation

◆ HasFileHash()

bool HasFileHash ( string  hash)
inline

Checks is passes hash exists in file hashes of this instance.

Parameters
hashTarget file hash.
Returns
True if such hash presents at FileHashes and false otherwise.

◆ PrintToConsole()

void PrintToConsole ( )
inline

Sends enclosing hashes to the console along with file names.

Property Documentation

◆ BuildPath

string BuildPath
get

Path to the build file or folder.

◆ FileHashes

IReadOnlyList<FileHash> FileHashes
get

Contains all sensitive files hashes and relative paths.

◆ SummaryHash

string SummaryHash
get

Summary hash for all files in build.

Use with caution: summary hash for runtime build may differ from the summary hash you got in Editor, for example, for Android App Bundles. Use FileHashes for more accurate hashes comparison control.

◆ DurationSeconds

double DurationSeconds
getset

Hashing duration in seconds. Will be 0 if hashing was not succeed.