flutter_secure_storage | A Flutter plugin to store data in secure storage | Plugin library

 by   mogol C++ Version: v8.0.0 License: BSD-3-Clause

kandi X-RAY | flutter_secure_storage Summary

kandi X-RAY | flutter_secure_storage Summary

flutter_secure_storage is a C++ library typically used in Plugin applications. flutter_secure_storage has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

A Flutter plugin to store data in secure storage:. Note KeyStore was introduced in Android 4.3 (API level 18). The plugin wouldn't work for earlier versions.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              flutter_secure_storage has a medium active ecosystem.
              It has 952 star(s) with 255 fork(s). There are 19 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 98 open issues and 309 have been closed. On average issues are closed in 108 days. There are 10 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of flutter_secure_storage is v8.0.0

            kandi-Quality Quality

              flutter_secure_storage has 0 bugs and 0 code smells.

            kandi-Security Security

              flutter_secure_storage has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              flutter_secure_storage code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              flutter_secure_storage is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              flutter_secure_storage releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.
              It has 656 lines of code, 44 functions and 9 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed flutter_secure_storage and discovered the below as its top functions. This is intended to give you an instant insight into flutter_secure_storage implemented functionality, and help decide if they suit your requirements.
            • Deletes all stored preferences
            • Re - encrypt the stored preferences
            • Migrate data to target storage
            • Initializes the shared preferences
            • Decodes the raw value
            • Initializes the storage cipher
            • Create the RSA keys if needed
            • Sets the default locale
            • Generate the key pair
            • Wrap a key
            • Returns the public key
            • Unwrap the wrapped key
            • Returns the private key associated with this key
            • Reads all preferences
            • Read a string value from the preferences
            • Deletes the key from the SharedPreferences
            • Encrypt a byte array
            • Writes the value to the preferences
            • Decrypt a byte array
            • Called when the plugin is detached from the engine
            Get all kandi verified functions for this library.

            flutter_secure_storage Key Features

            No Key Features are available at this moment for flutter_secure_storage.

            flutter_secure_storage Examples and Code Snippets

            No Code Snippets are available at this moment for flutter_secure_storage.

            Community Discussions

            QUESTION

            Flutter A required package was not found flutter_secure_storage/linux/CMakeLists.txt:14
            Asked 2022-Apr-04 at 09:20

            A required package was not found Call Stack (most recent call first): /snap/flutter/101/usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:597 (_pkg_check_modules_internal) flutter/ephemeral/.plugin_symlinks/flutter_secure_storage/linux/CMakeLists.txt:14 (pkg_check_modules)

            ...

            ANSWER

            Answered 2021-Sep-07 at 13:43

            In the doc of the package you can see it needs libsecret.

            You just need to install the following packages:

            Source https://stackoverflow.com/questions/68891798

            QUESTION

            Login button will not reset state after second press with Futter/Dart/BLoC
            Asked 2022-Mar-30 at 23:43

            I've been working on trying to build a login page with Flutter/Dart and BLoC. So far I've got a login page with two input fields for a username and password and a login button that is built off of rounded_loading_button.dart.

            On first pressing the login button with nothing in either field, the appropriate error is returned in the snackbar and the button is reset.

            However, the problem I'm having is that if you press the button a second time, the button continues to spin and the snackbar never shows again. It's as if there is no state being returned somehow.

            I've stepped through the code, tried to reset the state but I've not found a solution. I've provided all the files below that I'm working with.

            Setting LoginUserState.failed seems to only work once in this case and I can't seem to figure out how to reset it so a second attempt will show the snackbar again and any error and also reset the login button.

            Main.dart file

            ...

            ANSWER

            Answered 2022-Mar-30 at 23:43

            Bloc will not rebuild its child if the state is the same as the previous state, in your case you yield the same state.

            a simple solution would be to yield a different state before

            Source https://stackoverflow.com/questions/71684089

            QUESTION

            Unused dependencies Shows in Flutter
            Asked 2022-Mar-29 at 06:43

            I'm developing flutter application and I using below dependencies for my project.

            • webview_flutter: ^3.0.0

            • connectivity_plus: ^2.2.0

            • html: ^0.15.0

            • sn_progress_dialog: ^1.0.3

            • http: ^0.13.4

            • pin_code_fields: ^7.3.0

            • flutter_barcode_scanner: ^2.0.0

            • url_launcher: ^6.0.20

            • datetime_picker_formfield: ^2.0.0

            • extended_masked_text: ^2.3.1

            • image_picker: ^0.8.4+8

            • timelines: ^0.1.0

            • carousel_slider: ^4.0.0

            • page_transition: ^2.0.5

            • provider: ^6.0.2

            • native_updater: ^0.1.1

            • flutter_svg: ^1.0.3

            • dropdown_search: ^2.0.1

            • flutter_rating_bar: ^4.0.0

            • expandable: ^5.0.1

            • crypto: ^3.0.1

            • device_info_plus: ^3.2.1

            • dart_ipify: ^1.1.1

            • qr_code_scanner: ^0.6.1

            • flutter_jailbreak_detection: ^1.8.0

            • flutter_secure_storage: ^5.0.2

            • firebase_messaging: ^11.2.6

            • firebase_core: ^1.12.0

            • cloud_firestore: ^3.1.8

            • flutter_google_places: ^0.3.0

            • google_directions_api: ^0.9.0

            • geolocator: ^8.2.0

            • geocoding: ^2.0.2

            • google_maps_flutter: ^2.1.1

            • location: ^4.3.0

            • flutter_polyline_points: ^1.0.0

            • permission_handler: ^9.2.0

            But in my android folder shows unused dependencies . Anyone can explain this and how to remove this from project ? Ex:package_info_plus

            ...

            ANSWER

            Answered 2022-Mar-29 at 06:43

            I am not sure if I am giving the correct answer but, this may be because each flutter package/plugin may depend on others. If you see the device_info_plus on pub.dev you will see its dependencies. See the below image.

            Source https://stackoverflow.com/questions/71657182

            QUESTION

            Why does my Flutter page sometimes not render completely in release version?
            Asked 2022-Mar-26 at 13:39
            Problem

            I have a Flutter app with a log in page. When I run the app in debug mode, the log in page is rendered properly when the app is opened. But when I build a apk release of the app with flutter build apk --release, install it and then open the app in the emulator, the login page is not rendered properly. See screenshots below.

            Running in debug mode, properly rendered:

            Running the release build, not completely rendered:

            Code Login page code: ...

            ANSWER

            Answered 2021-Nov-08 at 13:44

            It is possibly because there are errors (exceptions) when the rendering is running. Have you checked whether there is an exception? For example, if you are using error-reporting tools like Sentry, go to its webpage to see. If you do not have one, try to see logs. Or, setup error handling (e.g. simply print it) following the official guide: https://flutter.dev/docs/testing/errors.

            If you cannot find out any clues, try to setup error handling and put all logs here and I can try to see it.

            EDIT

            With more info, I can explain what happens.

            Source https://stackoverflow.com/questions/69851578

            QUESTION

            how about to use secure storage to store the user username and password in flutter
            Asked 2022-Mar-17 at 18:21

            I am using flutter to write an app, now I want to use secure storage to store the username/passowrd like this:

            ...

            ANSWER

            Answered 2022-Mar-17 at 16:56

            As the docs say

            • Keychain is used for iOS
            • AES encryption is used for Android. AES secret key is encrypted with RSA and RSA key is stored in KeyStore

            Keystore is managed by the system, and the will be secure. You may use this if saving the password is important. However, its always recommended not to store passwords on the client-side, instead, save some Auth keys like JWT token, etc. to authenticate users.

            Source https://stackoverflow.com/questions/71515536

            QUESTION

            Flutter secred storage
            Asked 2022-Mar-16 at 13:57

            what is difference between this two storage option?

            https://pub.dev/packages/flutter_secure_storage

            https://pub.dev/packages/get_storage

            This two libraries based on the same or different implementation? If I have root on smartphone I can read data from application files saved using this storage? Which library is better/more safe?

            ...

            ANSWER

            Answered 2022-Mar-16 at 13:57

            First is encrypted, second is not.

            So first is more secured

            Source https://stackoverflow.com/questions/71498303

            QUESTION

            Error when adding Facebook Authentication to flutter App
            Asked 2022-Mar-04 at 14:05

            I'm going crazy because I'm trying to solve this from 3 days ago :) any one can please help me. Note: the app is already on google play, now I'm working on version 2 of app.

            I'm trying to add Facebook Authentication to an existing flutter app, i was add the package to pubspec.yaml file, and doing all configuration from official docs. now when trying to debug its show error :

            ...

            ANSWER

            Answered 2022-Mar-04 at 13:32

            Try adding maven { url 'https://maven.google.com' } to your build script repositories:

            Source https://stackoverflow.com/questions/71352075

            QUESTION

            Flutter - Key storage for end-to-end encryption across multiple devices
            Asked 2022-Feb-24 at 21:28

            I am writing a flutter application where the user can essentially create notes. I have written code to create a private key for the user, which is later used to encrypt their data. The encrypted data is stored in Firebase Firestore. When their data is retrieved it is decrypted using their key.

            I've looked at using Flutter Secure Storage, which works great, except that the secret key is only available on that device. If the user logs in on a new device, they will not be able to decrypt their notes.

            My question is:

            How/where can I store the user's secret key for decrypting their data so that only they have access to it, regardless of what device they log in with? What is best practice around this kind of solution?

            ...

            ANSWER

            Answered 2022-Feb-24 at 21:28

            As explained by David in the Virgil Security talk at GDG, this problem is overcome by utilizing the user's password to derive a key (which David refers to as a brain key) which is then used to encrypt the user's private key. So, when a user signs up, a private key is created for them, which is then encrypted using the brain key. This encrypted password key is stored in the cloud.

            Thus, when the user logs in from a new device, they type in their password and get the brain key from the password which is then used to decrypt their private key and is consequently saved to the user's device. Now, you might be wondering what happens if the user changes their password. In order to change one's password, the old password is required which is then used to create a new brain key and store the private key in an encrypted format.

            Source https://stackoverflow.com/questions/70728042

            QUESTION

            Flutter build error: Dart 2.13.1 is incompatible with your dependencies' SDK constraints
            Asked 2022-Feb-17 at 17:29

            I am relatively new to Flutter, and don't seem to be able to figure this out.

            Here is my pubspec.yaml:

            ...

            ANSWER

            Answered 2022-Feb-17 at 17:29

            Just got back to this project, with a fresh mind, and I quickly fixed the issue by changing the environment sdk to ">=2.15.1 <3.0.0".

            Source https://stackoverflow.com/questions/70742331

            QUESTION

            which best option to store key value pair in flutter?
            Asked 2022-Jan-05 at 16:14

            which plugin should I use to save data as key-value pair and some of them will be serialized objects? and is there are any differences in performance?

            share prefrences, flutter secure storage or hive

            ...

            ANSWER

            Answered 2022-Jan-05 at 16:14

            flutter_secure_storage is stored with aes encryption and it saved as same shared_preefrences does but there is better option available with same security but with high performance hive.

            performance difference can be shown as below,

            for 1000 read iterations

            1000 write iterations

            Source https://stackoverflow.com/questions/70595784

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install flutter_secure_storage

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/mogol/flutter_secure_storage.git

          • CLI

            gh repo clone mogol/flutter_secure_storage

          • sshUrl

            git@github.com:mogol/flutter_secure_storage.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link