dart 加密mds
dart有内置的md5加密包,先引入头文件:
import 'dart:convert';
import 'package:crypto/crypto.dart';
void main() {
// 待加密字符串
var s = "https://space.bilibili.com/480883651";
var content = new Utf8Encoder().convert(s);
var digest = md5.convert(content);
print(digest);
}