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

Method sha1_text

core/string/ustring.cpp:2826–2831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2824}
2825
2826String String::sha1_text() const {
2827 CharString cs = utf8();
2828 unsigned char hash[20];
2829 CryptoCore::sha1((unsigned char *)cs.ptr(), cs.length(), hash);
2830 return String::hex_encode_buffer(hash, 20);
2831}
2832
2833String String::sha256_text() const {
2834 CharString cs = utf8();

Callers 3

_version_get_sha1Method · 0.80
test_string.hFile · 0.80
_version_get_sha1Method · 0.80

Calls 2

ptrMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected