| 2817 | } |
| 2818 | |
| 2819 | String String::md5_text() const { |
| 2820 | CharString cs = utf8(); |
| 2821 | unsigned char hash[16]; |
| 2822 | CryptoCore::md5((unsigned char *)cs.ptr(), cs.length(), hash); |
| 2823 | return String::hex_encode_buffer(hash, 16); |
| 2824 | } |
| 2825 | |
| 2826 | String String::sha1_text() const { |
| 2827 | CharString cs = utf8(); |
no test coverage detected