{"id":17586971,"url":"https://github.com/lamnguyen17/flutter_crypto_algorithm","last_synced_at":"2026-04-18T00:31:50.129Z","repository":{"id":257821614,"uuid":"870570333","full_name":"LamNguyen17/flutter_crypto_algorithm","owner":"LamNguyen17","description":"Method Channel using Kotlin \u0026 Swift for Flutter","archived":false,"fork":false,"pushed_at":"2024-10-13T05:16:40.000Z","size":125,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T07:21:40.550Z","etag":null,"topics":["coroutines-flow","cryptoswift","flutter","kotlin-android","kotlin-coroutines","method-channel","reactive-programming","rxswift","swift-ios"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LamNguyen17.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-10T09:28:13.000Z","updated_at":"2024-10-13T05:16:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"8996ffa5-dd63-42ae-9fe7-adc9eac56b3f","html_url":"https://github.com/LamNguyen17/flutter_crypto_algorithm","commit_stats":null,"previous_names":["lamnguyen17/flutter_crypto_algorithm"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/LamNguyen17/flutter_crypto_algorithm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LamNguyen17%2Fflutter_crypto_algorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LamNguyen17%2Fflutter_crypto_algorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LamNguyen17%2Fflutter_crypto_algorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LamNguyen17%2Fflutter_crypto_algorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LamNguyen17","download_url":"https://codeload.github.com/LamNguyen17/flutter_crypto_algorithm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LamNguyen17%2Fflutter_crypto_algorithm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278671729,"owners_count":26025743,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coroutines-flow","cryptoswift","flutter","kotlin-android","kotlin-coroutines","method-channel","reactive-programming","rxswift","swift-ios"],"created_at":"2024-10-22T03:29:59.282Z","updated_at":"2025-10-06T19:48:03.984Z","avatar_url":"https://github.com/LamNguyen17.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter_crypto_algorithm\n\n[![Native language](https://img.shields.io/badge/native_language-Kotlin_\u0026_Swift-green)](https://pub.dev/packages/flutter_crypto_algorithm)\n[![Code cov](https://codecov.io/gh/LamNguyen17/flutter_crypto_algorithm/branch/master/graph/badge.svg)](https://app.codecov.io/github/LamNguyen17/flutter_crypto_algorithm/blob/master/lib)\n[![License](https://img.shields.io/badge/license-MIT-8A2BE2)](https://github.com/LamNguyen17/flutter_crypto_algorithm/blob/master/LICENSE)\n[![Author](https://img.shields.io/badge/author-Forest_Nguyen-f59642)](https://github.com/LamNguyen17)\n\nA Flutter package for secure encryption algorithms, providing efficient tools for data protection and encryption operations\n\n## Installation\nRun this command with Flutter:\n```sh\nflutter pub add encryption_algorithm\n```\n\n## Usage\n### Methods\n#### 🚀 AES\n```dart\nimport 'package:flutter_crypto_algorithm/flutter_crypto_algorithm.dart';\n```\n```dart\nvoid main() {\n  runApp(const MyApp());\n}\n\nclass MyApp extends StatefulWidget {\n  const MyApp({super.key});\n\n  @override\n  State\u003cMyApp\u003e createState() =\u003e _MyAppState();\n}\n\nclass _MyAppState extends State\u003cMyApp\u003e {\n  String _encrypt = '';\n  String _decrypt = '';\n  final _crypto = Crypto();\n\n  @override\n  void initState() {\n    super.initState();\n    crypto();\n  }\n\n  // Platform messages are asynchronous, so we initialize in an async method.\n  Future\u003cvoid\u003e crypto() async {\n    String encrypt;\n    String decrypt;\n    try {\n      encrypt =\n          await _crypto.encrypt('Hello123', 'Hello') ??\n              'Unknown encrypt';\n      decrypt = await _crypto.decrypt(encrypt, 'Hello') ??\n          'Unknown decrypt';\n    } on PlatformException {\n      encrypt = 'Failed encrypt.';\n      decrypt = 'Failed decrypt.';\n    }\n    if (!mounted) return;\n    setState(() {\n      _encrypt = encrypt;\n      _decrypt = decrypt;\n    });\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return MaterialApp(\n      home: Scaffold(\n        appBar: AppBar(\n          title: const Text('Flutter Crypto Algorithm'),\n        ),\n        body: SingleChildScrollView(\n          child: Column(\n            children: [\n              Section(title: 'AES', children: [\n                _buildText('Encrypt: ', _encrypt),\n                _buildText('Decrypt: ', _decrypt),\n              ]),\n            ],\n          ),\n        ),\n      ),\n    );\n  }\n\n  Widget _buildText(String label, String value) {\n    return Text.rich(\n      overflow: TextOverflow.ellipsis,\n      maxLines: 2,\n      TextSpan(\n        text: label,\n        style: const TextStyle(\n            fontSize: 16, fontWeight: FontWeight.bold, color: Colors.red),\n        children: [\n          TextSpan(\n            text: value,\n            style: const TextStyle(\n                fontSize: 16,\n                fontWeight: FontWeight.normal,\n                color: Colors.black),\n          ),\n        ],\n      ),\n    );\n  }\n}\n\nclass Section extends StatelessWidget {\n  final String title;\n  final List\u003cWidget\u003e children;\n\n  const Section({super.key, required this.title, required this.children});\n\n  @override\n  Widget build(BuildContext context) {\n    return Padding(\n      padding: const EdgeInsets.all(16.0),\n      child: Column(\n        crossAxisAlignment: CrossAxisAlignment.start,\n        children: [\n          Text(\n            title,\n            style: const TextStyle(fontSize: 20, fontWeight: FontWeight.bold),\n          ),\n          ...children,\n        ],\n      ),\n    );\n  }\n}\n```\n\n---\n## API\n### List of Algorithms\n- [x] ```AES(Advanced Encryption Standard)```\n- [ ] ```SHA-256 (Secure Hash Algorithm)```\n- [ ] ```RSA (Rivest-Shamir-Adleman)```\n- [ ] ```ChaCha20```\n- [ ] ```Blowfish```\n- [ ] ```HMAC (Hash-based Message Authentication Code)```\n- [ ] ```PBKDF2 (Password-Based Key Derivation Function 2)```\n- [ ] ```ECC (Elliptic Curve Cryptography)```\n- [ ] ```Scrypt```\n- [ ] ```XChaCha20-Poly1305```\n---\n## Author\n    Forest Nguyen\n    Email: devlamnt176@gmail.com\n---\n## License\n    MIT License\n    Copyright (c) 2024 Forest Nguyen\n---\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamnguyen17%2Fflutter_crypto_algorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flamnguyen17%2Fflutter_crypto_algorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamnguyen17%2Fflutter_crypto_algorithm/lists"}