Files
flutter-todos/test/encrypt_test.dart
2021-12-08 10:04:11 +08:00

18 lines
384 B
Dart
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import 'package:flutter_test/flutter_test.dart';
import 'package:todo_list/utils/my_encrypt_util.dart';
void main(){
test("加密测试", (){
String text = 'Flutter真好用';
String encrypt = EncryptUtil.instance.encrypt(text);
print("加密后 :$encrypt");
String decrypt = EncryptUtil.instance.decrypt(encrypt);
print("解密后 :$decrypt");
});
}