calculateDigestForString static method

String calculateDigestForString(
  1. String value
)

Calculates the MD5 digest of a given string value.

Implementation

static String calculateDigestForString(String value) {
  return md5.convert(utf8.encode(value)).toString();
}