md5 property

String md5

Calculates the MD5 digest and returns the value as a String of hexadecimal digits.

print('abc'.md5); //900150983cd24fb0d6963f7d28e17f72
print('message digest'.md5); //f96b697d7cb7938d525a2f31aaf161d0

Implementation

String get md5 => crypto.md5.convert(toUtf8()).toString();