generateDigestForRawString static method

String generateDigestForRawString(
  1. String string
)

Calculates the MD5 digest of a given string string.

Implementation

static String generateDigestForRawString(String string) {
  return md5.convert(utf8.encode(string)).toString();
}