Giter Club home page Giter Club logo

xaldarof / encrypted-shared-preferences Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 2.0 356 KB

Perfect for developers prioritizing security, Encrypted Shared Preferences integrates effortlessly into your projects, offering peace of mind and enhancing data privacy. Safeguard your app's data with this essential encryption solution

License: Apache License 2.0

Dart 22.28% Kotlin 0.41% Ruby 2.25% Swift 2.97% Objective-C 0.06% CMake 30.13% C++ 36.70% C 2.27% HTML 2.93%
encryption flutter key library observable reactive sharedpreferences stream

encrypted-shared-preferences's Introduction

encrypted-shared-preferences's People

Contributors

xaldarof avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

encrypted-shared-preferences's Issues

How to call reload function?

EncryptedSharedPreferences miss reload function.
I found the static late SharedPreferencesDecorator _decorator already implement, but it is private.
so , how can i call reload function?
or why it is private?

Can't save string when the value is empty

hi,
When i save data with a empty string, It will throw Exception.

The code is:

EncryptedSharedPreferences.getInstance().setString("abc", "");

The Exception is:

E/flutter (26499): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: RangeError (start): Invalid value: Only valid value is 0: -16
E/flutter (26499): #0 RangeError.checkValidRange (dart:core/errors.dart:360:7)
E/flutter (26499): #1 _TypedIntListMixin.sublist (dart:typed_data-patch/typed_data_patch.dart:466:31)
E/flutter (26499): #2 PaddedBlockCipherImpl.doFinal (package:pointycastle/padded_block_cipher/padded_block_cipher_impl.dart:87:64)
E/flutter (26499): #3 PaddedBlockCipherImpl.process (package:pointycastle/padded_block_cipher/padded_block_cipher_impl.dart:74:25)
E/flutter (26499): #4 AES.encrypt (package:encrypt/src/algorithms/aes.dart:38:32)
E/flutter (26499): #5 Encrypter.encryptBytes (package:encrypt/src/encrypter.dart:12:19)
E/flutter (26499): #6 Encrypter.encrypt (package:encrypt/src/encrypter.dart:20:12)
E/flutter (26499): #7 AESEncryptor.encrypt (package:encrypt_shared_preferences/src/crypto/aes.dart:14:46)
E/flutter (26499): #8 SharedPreferencesDecorator.save (package:encrypt_shared_preferences/src/shared_preferences_decorator.dart:155:22)
E/flutter (26499): #9 SharedPreferencesDecorator.setString (package:encrypt_shared_preferences/src/shared_preferences_decorator.dart:148:12)
E/flutter (26499): #10 EncryptedSharedPreferences.setString (package:encrypt_shared_preferences/src/enc_shared_pref.dart:66:23)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.