randomStrMd5 static method
获取随机字符串,使用加密库
Implementation
static String randomStrMd5() {
final randomNumber = Random().nextDouble();
final randomBytes = utf8.encode(randomNumber.toString());
return md5.convert(randomBytes).toString();
}
获取随机字符串,使用加密库
static String randomStrMd5() {
final randomNumber = Random().nextDouble();
final randomBytes = utf8.encode(randomNumber.toString());
return md5.convert(randomBytes).toString();
}