{"id":22050147,"url":"https://github.com/icapps/flutter_secure_file_storage","last_synced_at":"2025-05-08T23:10:58.336Z","repository":{"id":42472496,"uuid":"438673870","full_name":"icapps/flutter_secure_file_storage","owner":"icapps","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-08T11:40:50.000Z","size":180,"stargazers_count":8,"open_issues_count":5,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-08T12:35:04.115Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/icapps.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}},"created_at":"2021-12-15T15:12:11.000Z","updated_at":"2025-04-08T11:40:55.000Z","dependencies_parsed_at":"2023-11-16T13:41:44.368Z","dependency_job_id":"e9066e99-2bb6-4621-a057-56a0058a4d4b","html_url":"https://github.com/icapps/flutter_secure_file_storage","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icapps%2Fflutter_secure_file_storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icapps%2Fflutter_secure_file_storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icapps%2Fflutter_secure_file_storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icapps%2Fflutter_secure_file_storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icapps","download_url":"https://codeload.github.com/icapps/flutter_secure_file_storage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253160776,"owners_count":21863630,"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","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":[],"created_at":"2024-11-30T14:18:01.576Z","updated_at":"2025-05-08T23:10:58.316Z","avatar_url":"https://github.com/icapps.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flutter secure file storage\n\n[![pub package](https://img.shields.io/pub/v/flutter_secure_file_storage.svg)](https://pub.dartlang.org/packages/flutter_secure_file_storage)\n\nAn implementation for flutter secure file storage. For example keychain has a soft limit of 4kb. Using the file system instead we can store much larger content.\n\nAES/GCM/NoPadding encryption is used to encrypt the data. The keys are generated using `Random.secure`and stored using the [flutter_secure_storage](https://pub.dev/packages/flutter_secure_storage) package, the values are encrypted by the [pointycastle](https://pub.dev/packages/pointycastle) package or native for Android\n\n## Usage\n\nIt's implemented to use the same structure as FlutterSecureStorage and therefore you can switch easily between them. But we also support Uint8List as input/output \n\n```dart\nimport 'package:flutter_secure_file_storage/flutter_secure_file_storage.dart';\nimport 'package:flutter_secure_storage/flutter_secure_storage.dart';\n\n// Create storage\nfinal storage = FlutterSecureFileStorage(FlutterSecureStorage());\n\n// Read value\nfinal value = await storage.read\u003cString\u003e(key: key);\n\n// Read all values\nMap\u003cString, String\u003e allValues = await storage.readAll();\n\n// Delete value\nawait storage.delete(key: key);\n\n// Delete all\nawait storage.deleteAll();\n\n// Write value\nawait storage.write(key: key, value: value);\n```\n\n### Configure Android version \nIn [project]/android/app/build.gradle set minSdkVersion to \u003e= 18.\n\n```\nandroid {\n    ...\n\n    defaultConfig {\n        ...\n        minSdkVersion 18\n        ...\n    }\n\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficapps%2Fflutter_secure_file_storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficapps%2Fflutter_secure_file_storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficapps%2Fflutter_secure_file_storage/lists"}