Function TRAP::Utils::Hash::SHA2_256(std::string_view)#

Function Documentation#

std::array<u8, 32> TRAP::Utils::Hash::SHA2_256(std::string_view str)#

Retrieve the SHA2 256 hash of the given string.

Parameters:

str – String to get hash from.

Returns:

SHA2 256 hash of input.