| 2831 | } |
| 2832 | |
| 2833 | String 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 | |
| 2840 | Vector<uint8_t> String::md5_buffer() const { |
| 2841 | CharString cs = utf8(); |
no test coverage detected