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 {
131131}
132132```
133133
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+ ---
144156
Original file line number Diff line number Diff line change @@ -14,11 +14,8 @@ class MethodChannelFlutterCryptoAlgorithm
1414 Future <String ?> encrypt (
1515 String value, String privateKey, String ? ivKey) async {
1616 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});
2219 } catch (e) {
2320 return null ;
2421 }
@@ -28,11 +25,8 @@ class MethodChannelFlutterCryptoAlgorithm
2825 Future <String ?> decrypt (
2926 String value, String privateKey, String ? ivKey) async {
3027 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});
3630 } catch (e) {
3731 return null ;
3832 }
You can’t perform that action at this time.
0 commit comments