MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / sha256_text

Method sha256_text

core/string/ustring.cpp:2833–2838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2831}
2832
2833String String::sha256_text() const {
2834 CharString cs = utf8();
2835 unsigned char hash[32];
2836 CryptoCore::sha256((unsigned char *)cs.ptr(), cs.length(), hash);
2837 return String::hex_encode_buffer(hash, 32);
2838}
2839
2840Vector<uint8_t> String::md5_buffer() const {
2841 CharString cs = utf8();

Callers 5

_setupMethod · 0.80
initializeMethod · 0.80
test_string.hFile · 0.80
setupMethod · 0.80
_initialize_cacheMethod · 0.80

Calls 2

ptrMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected