mirror of
https://github.com/asjqkkkk/flutter-todos.git
synced 2025-08-06 14:19:24 +08:00
18 lines
384 B
Dart
18 lines
384 B
Dart
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");
|
||
|
||
});
|
||
} |