toMd5 method
Converts the given value
string into its MD5 hash representation.
Example:
"hello".toMd5(); // "5d41402abc4b2a76b9719d911017c592"
Implementation
String toMd5() {
return md5.convert(utf8.encode(this)).toString();
}
Converts the given value
string into its MD5 hash representation.
Example:
"hello".toMd5(); // "5d41402abc4b2a76b9719d911017c592"
String toMd5() {
return md5.convert(utf8.encode(this)).toString();
}