encodeSha512 static method

String encodeSha512(
  1. String data
)

sha512 散列计算

Implementation

static String encodeSha512(String data) {
  var content = const Utf8Encoder().convert(data);
  var digest = sha512.convert(content);
  return hex.encode(digest.bytes);
}