https://github.com/abdalftahsalem/thunder-encryption
A library for encryption utilities in Dart.
https://github.com/abdalftahsalem/thunder-encryption
android dart decryption encryption encryption-decryption flutter ios
Last synced: 2 months ago
JSON representation
A library for encryption utilities in Dart.
- Host: GitHub
- URL: https://github.com/abdalftahsalem/thunder-encryption
- Owner: AbdAlftahSalem
- License: mit
- Created: 2024-09-23T13:21:51.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-01-06T11:21:40.000Z (5 months ago)
- Last Synced: 2025-02-10T15:21:27.663Z (4 months ago)
- Topics: android, dart, decryption, encryption, encryption-decryption, flutter, ios
- Language: Dart
- Homepage: https://pub.dev/packages/thunder_encryption
- Size: 343 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Flutter Dart Thunder Encryption Decryption
This project convert readable ( Plain ) strings to unreadable ( Cipher ) and decryption strings .
## Installation
To install thunder_encryption , run the following command:
```bash
dart pub add thunder_encryption
```## Usage
```bash
// Test normal String [ EN ]
String plainEnString = "Abd Alftah Nedal AlShanti";
String cipherEnString = TextEncryption.textEncryption(plainEnString);
String encipherEnString = TextDecryption.textDecryption(cipherEnString);// Test symbols
String plainSymbolString = "(=++*/\$@!*)";
String cipherSymbolString = TextEncryption.textEncryption(plainSymbolString);
String encipherSymbolString =
TextDecryption.textDecryption(cipherSymbolString);// Test normal String [ AR ]
String plainArString = "عبد الفتاح نضال الشنطي";
String cipherArString = TextEncryption.textEncryption(plainArString);
String encipherArString = TextDecryption.textDecryption(cipherArString);print("\n" + ("*" * 25) + " Test EN String " + ("*" * 25));
print("Plain EN Text : $plainEnString");
print("Cipher EN Text : $cipherEnString");
print("Encipher EN Text : $encipherEnString");print("\n" + ("*" * 25) + " Test Symbols String " + ("*" * 25));
print("Plain Symbol Text : $plainSymbolString");
print("Cipher Symbol Text : $cipherSymbolString");
print("Encipher Symbol Text : $encipherSymbolString");print("\n" + ("*" * 25) + " Test AR String " + ("*" * 25));
print("Plain AR Text : $plainArString");
print("Cipher AR Text : $cipherArString");
print("Encipher AR Text : $encipherArString");
```[Thunder Encryption on pub.dev](https://pub.dev/packages/thunder_encryption)
## Contributing
Feel free to contribute to this project by opening issues, suggesting new features, or submitting pull requests , or add
new languages.### Add Languages:
1- Go to lib/core/strings
2- Create new file for new language ex [ en_letters / ar_letters ]
3- create a Map for letter to use it in encryption and create Map to use in decryption
```bash
class EnLetters {
// create singleton for ConstStrings
static final EnLetters instance = EnLetters._internal();factory EnLetters() => instance;
EnLetters._internal();
Map enSmallLettersStringKey = {
"a": 0,
"b": 1,
}
Map enSmallLettersIntKey = {
0: "a",
1: "b",
}
}```
4- Go to lib/core/strings/letters_init.dart then add new language in setupLetters method## License
This project is licensed under the MIT License.
---