File tree Expand file tree Collapse file tree 2 files changed +26
-20
lines changed Expand file tree Collapse file tree 2 files changed +26
-20
lines changed Original file line number Diff line number Diff line change @@ -131,14 +131,26 @@ class Section extends StatelessWidget {
131
131
}
132
132
```
133
133
134
- ## Getting Started
135
-
136
- This project is a starting point for a Flutter
137
- [ plug-in package] ( https://flutter.dev/developing-packages/ ) ,
138
- a specialized package that includes platform-specific implementation code for
139
- Android and/or iOS.
140
-
141
- For help getting started with Flutter development, view the
142
- [ online documentation] ( https://flutter.dev/docs ) , which offers tutorials,
143
- samples, guidance on mobile development, and a full API reference.
134
+ ---
135
+ ## API
136
+ ### List of Algorithms
137
+ - [x] ``` AES(Advanced Encryption Standard) ```
138
+ - [ ] ``` SHA-256 (Secure Hash Algorithm) ```
139
+ - [ ] ``` RSA (Rivest-Shamir-Adleman) ```
140
+ - [ ] ``` ChaCha20 ```
141
+ - [ ] ``` Blowfish ```
142
+ - [ ] ``` HMAC (Hash-based Message Authentication Code) ```
143
+ - [ ] ``` PBKDF2 (Password-Based Key Derivation Function 2) ```
144
+ - [ ] ``` ECC (Elliptic Curve Cryptography) ```
145
+ - [ ] ``` Scrypt ```
146
+ - [ ] ``` XChaCha20-Poly1305 ```
147
+ ---
148
+ ## Author
149
+ Forest Nguyen
150
+ Email: devlamnt176@gmail.com
151
+ ---
152
+ ## License
153
+ MIT License
154
+ Copyright (c) 2024 Forest Nguyen
155
+ ---
144
156
Original file line number Diff line number Diff line change @@ -14,11 +14,8 @@ class MethodChannelFlutterCryptoAlgorithm
14
14
Future <String ?> encrypt (
15
15
String value, String privateKey, String ? ivKey) async {
16
16
try {
17
- return await methodChannel.invokeMethod ('encrypt' , {
18
- 'value' : value,
19
- 'privateKey' : privateKey,
20
- if (ivKey != null ) 'ivKey' : ivKey
21
- });
17
+ return await methodChannel.invokeMethod ('encrypt' ,
18
+ {'value' : value, 'privateKey' : privateKey, 'ivKey' : ivKey});
22
19
} catch (e) {
23
20
return null ;
24
21
}
@@ -28,11 +25,8 @@ class MethodChannelFlutterCryptoAlgorithm
28
25
Future <String ?> decrypt (
29
26
String value, String privateKey, String ? ivKey) async {
30
27
try {
31
- return await methodChannel.invokeMethod ('decrypt' , {
32
- 'value' : value,
33
- 'privateKey' : privateKey,
34
- if (ivKey != null ) 'ivKey' : ivKey
35
- });
28
+ return await methodChannel.invokeMethod ('decrypt' ,
29
+ {'value' : value, 'privateKey' : privateKey, 'ivKey' : ivKey});
36
30
} catch (e) {
37
31
return null ;
38
32
}
You can’t perform that action at this time.
0 commit comments