A package for encrypted shared preferences

Overview

Prefs Guard

Prefs Guard is a data protection wrapper for local storage (Shared Prefs). supporting both IOS & Android.

- Notice :- Use Same GuardType through out the app to get the proper result.

Prefs guard supports three types of encryption formats

GuardType.AES

import 'package:prefs_guard/prefsguard.dart';

final prefs = PrefsGuard(GuardType.AES);

//Storing a value in local storage 
prefs.write(key: 'hello', value: 'flutter'); //encrypts using AES encryption.

//reading a value from local storage
final data= await prefs.read(key: 'hello');//decrypt using AES 

GuardType.Salsa20

import 'package:prefs_guard/prefsguard.dart';

final prefs = PrefsGuard(GuardType.Salsa20);

//Storing a value in local storage 
prefs.write(key: 'hello', value: 'flutter'); //encrypts using Salsa20 encryption.

//reading a value from local storage
final data= await prefs.read(key: 'hello');//decrypt using Salsa20 

GuardType.FerNet

import 'package:prefs_guard/prefsguard.dart';

final prefs = PrefsGuard(GuardType.FerNet);

//Storing a value in local storage 
prefs.write(key: 'hello', value: 'flutter'); //encrypts using FerNet encryption.

//reading a value from local storage
final data= await prefs.read(key: 'hello');//decrypt using FerNet 

Clearing Prefs

final prefs = PrefsGuard(GuardType.FerNet);
prefs.clearAll();

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update the tests as appropriate.

License

MIT

You might also like...

PrivateFit is an E2E encrypted fitness application built on the atPlatform.

PrivateFit is an E2E encrypted fitness application built on the atPlatform.

Private Fit Now for a little internet optimism Generated by the at_app CLI and Very Good CLI 🤖 A secure fitness app. Getting Started 🚀 This project

Oct 31, 2022

Example of verifying cryptographically signed and encrypted license files using Dart, Ed25519 and AES-256-GCM

Example Dart Cryptographic License Files This is an example of how to verify and decrypt cryptographic license files in Dart, using Ed25519 signature

Oct 27, 2022

Flutter preferences management with crypto capabilities

crypted_preferences Flutter preferences management with crypto capabilities For now preferences are not crypted, I'm waiting for FFI to land :) But yo

Jan 14, 2020

Use CMP Crew, Create a room, invite your friends to join, and let them add their orders to the shared menu!

Use CMP Crew, Create a room, invite your friends to join, and let them add their orders to the shared menu!

Tired of collecting your friends’ orders at restaurants? Lost track of how many of you want tea? Don’t worry we got you covered! Use CMP Crew, Create a room, invite your friends to join, and let them add their orders to the shared menu!

Dec 15, 2022

Shared Mobile and Web Firebase Login

fb_auth A Shared Firebase Auth Plugin for Mobile, Web and Desktop. Included AuthBloc for minimal setup! Single dynamic import and compile time ready f

Dec 29, 2021

Settings Screen with Custom Shared Preference Interface

Settings Screen with Custom Shared Preference Interface

flutter_settings_screens This is a simple flutter plugin for easily creating app settings screens. The unique thing about this library is that it is n

Jan 4, 2023

This is a wallet application written in Flutter & Dart. Codebase could be shared effectively on other OS Platforms

This is a wallet application written in Flutter & Dart. Codebase could be shared effectively on other OS Platforms

Gwallet A Simple wallet application written in Flutter and Dart for Android and iOs. Getting Started For Android, Specifically. You can run iOS, by st

Dec 12, 2022

An simple app for your shared billings with your friends or enemies :)

oepaga A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this i

Sep 23, 2022

A GUI package manager and package installer for Windows Subsystem for Android (WSA)

A GUI package manager and package installer for Windows Subsystem for Android (WSA)

wsa_pacman A GUI package manager and package installer for Windows Subsystem for Android (WSA). Currently provides a double-click GUI installer for .a

Jan 1, 2023
Owner
null
A package for encrypted shared preferences

Prefs Guard Prefs Guard is a data protection wrapper for local storage (Shared Prefs). supporting both IOS & Android. - Notice :- Use Same GuardType t

null 26 Jun 7, 2022
Flutter-Shared-Preference - The goal is to learn how to use the shared preferences plugin to save important pieces of information to your device.

Recipe Finder The goal is to learn how to use the shared preferences plugin to save important pieces of information to your device. Final App UI Resou

Ashirbad Swain 1 Jan 1, 2022
Flutter theme demo using riverpod and shared preferences

flutter_theme_demo A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you start

Andree Yosua 0 Dec 27, 2021
Flutter settings manager built on top of Shared Preferences

Settings Manager Flutter settings store built on top of shared preferences. Code Generator for supported types Usage import 'dart:async'; import 'pac

Rody Davis 17 Dec 13, 2022
Flutter Settings Screen with Shared Preferences

Settings Screen with Shared Preferences A library that provides an easy solution to create settings screens with simple and compound options. Features

Barnabás BARTHA 66 Sep 27, 2022
🌀 Shared preferences with RxDart Stream observation

?? Shared preferences with RxDart Stream observation ⚡️ Reactive shared preferences for Flutter ??Reactive stream wrapper around SharedPreferences ?? Lightweight and easy-to-use ?? A reactive key-value store for Flutter projects. Like shared_preferences, but with Streams ?? Rx Shared Preferences for Flutter ?? rx_shared_preferences ?? rx_shared_preference ?? Reactive SharedPreferences for Flutter ?? A stream based wrapper over shared_preferences, allowing reactive key-value storage.

Petrus Nguyễn Thái Học 36 Nov 4, 2022
Shared Preferences ile ekran açılma sayacı uygulaması

sayac_uygulamasi A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

null 0 Dec 29, 2021
This example uses a ScrollView, JSON Rest API, Navigation, Alert Pop Up, Progress Indicator, Globals, Images in a shared asset folder, and 100% Shared Code

This example uses a ScrollView, JSON Rest API, Navigation, Alert Pop Up, Progress Indicator, Globals, Images in a shared asset folder, and 100% Shared Code. Now with the ability to login with FaceID, TouchID, and Fingerprint Reader on Android.

Rody Davis 672 Jan 6, 2023
Mildly encrypted package - An encryption client & server for Dart Native + mobile platforms.

TODO: Put a short description of the package here that helps potential users know whether this package might be useful for them. Features TODO: List w

Andrew Stein 0 Jan 9, 2022
Bhargav Reddy 10 Nov 12, 2022