encodeBase64 static method

String encodeBase64(
  1. String data
)

Base64加密

Implementation

static String encodeBase64(String data) {
  var content = utf8.encode(data);
  var digest = base64Encode(content);
  return digest;
}