View Code? Open in Web Editor
NEW
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%
encrypted-shared-preferences's Introduction
encrypted-shared-preferences's People
Contributors
Stargazers
Watchers
encrypted-shared-preferences's Issues
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?
hello my friends! I don't understand what is the key in initialize function?
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)