All Projects → orhanobut → Hawk

orhanobut / Hawk

Licence: apache-2.0
✔️ Secure, simple key-value storage for Android

Programming Languages

java
68154 projects - #9 most used programming language
kotlin
9241 projects

Projects that are alternatives of or similar to Hawk

Prefser
Wrapper for Android SharedPreferences with object serialization and RxJava Observables
Stars: ✭ 228 (-94.04%)
Mutual labels:  preferences, storage, sharedpreferences
Binaryprefs
Rapidly fast and lightweight re-implementation of SharedPreferences which stores each preference in files separately, performs disk operations via NIO with memory mapped byte buffers and works IPC (between processes). Written from scratch.
Stars: ✭ 484 (-87.35%)
Mutual labels:  preferences, storage, sharedpreferences
Kissme
Kissme: Kotlin Secure Storage Multiplatform
Stars: ✭ 351 (-90.83%)
Mutual labels:  preferences, storage, encryption
Preferenceroom
🚚 Android processing library for managing SharedPreferences persistence efficiently and structurally.
Stars: ✭ 341 (-91.09%)
Mutual labels:  preferences, storage, sharedpreferences
Typedpreferences
Preference wrappers for primitive types for Android
Stars: ✭ 191 (-95.01%)
Mutual labels:  preferences, sharedpreferences
Bulldog
Android library to simplify reading and writing to SharedPreferences, never write code like this anymore prefs.edit().putString("someKey","someString").apply()
Stars: ✭ 133 (-96.52%)
Mutual labels:  preferences, sharedpreferences
PowerPreference
💾 A Powerful library to control and simplify the usage of shared preference in Android.
Stars: ✭ 95 (-97.52%)
Mutual labels:  preferences, sharedpreferences
KVStorage
Android 结构化KV存储框架,基于 yaml 生成 java 结构化存储类
Stars: ✭ 228 (-94.04%)
Mutual labels:  sharedpreferences, storage
kesho
store cache any data type string, boolean, jsonObject, jsonArray, .....
Stars: ✭ 19 (-99.5%)
Mutual labels:  sharedpreferences, storage
DBMSology
The Paper List on Design and Implmentation of System Software
Stars: ✭ 67 (-98.25%)
Mutual labels:  storage, key-value-store
Rxkprefs
🛠 A small Kotlin library to make shared preferences easy + RxJava and Coroutines support
Stars: ✭ 264 (-93.1%)
Mutual labels:  storage, sharedpreferences
Multiplatform Preferences
Kotlin Multi Platform Preferences, for android an ios : SharedPreferences & NSUserDefault
Stars: ✭ 76 (-98.01%)
Mutual labels:  preferences, sharedpreferences
Conf
Simple config handling for your app or module
Stars: ✭ 707 (-81.53%)
Mutual labels:  preferences, storage
memo
Android processing and secured library for managing SharedPreferences as key-value elements efficiently and structurally.
Stars: ✭ 18 (-99.53%)
Mutual labels:  sharedpreferences, storage
Electron Store
Simple data persistence for your Electron app or module - Save and load user preferences, app state, cache, etc
Stars: ✭ 3,316 (-13.35%)
Mutual labels:  preferences, storage
Materialpreferences
A highly flexible set of lovely looking views that provides functionality of preferences.
Stars: ✭ 495 (-87.07%)
Mutual labels:  preferences, sharedpreferences
Incubator Pegasus
['pɛgəsəs] A distributed key-value storage system developed and maintained by Xiaomi Cloud Storage Team.
Stars: ✭ 1,346 (-64.83%)
Mutual labels:  storage, key-value-store
Mega.py
Python library for the https://mega.nz/ API.
Stars: ✭ 145 (-96.21%)
Mutual labels:  storage, encryption
infinitree
Scalable and encrypted embedded database with 3-tier caching
Stars: ✭ 80 (-97.91%)
Mutual labels:  encryption, storage
Immortaldb
🔩 A relentless key-value store for the browser.
Stars: ✭ 2,962 (-22.6%)
Mutual labels:  storage, key-value-store

Android Arsenal API Join the chat at https://gitter.im/orhanobut/hawk Build Status

Hawk 2.0

Secure, simple key-value storage for android

Important Note

This version has no backward compatibility with Hawk 1+ versions. If you still want to use old versions, check here

Download

compile "com.orhanobut:hawk:2.0.1"

Initialize

Hawk.init(context).build();

Usage

Save any type (Any object, primitives, lists, sets, maps ...)

Hawk.put(key, T);

Get the original value with the original type

T value = Hawk.get(key);

Delete any entry

Hawk.delete(key);

Check if any key exists

Hawk.contains(key);

Check total entry count

Hawk.count();

Get crazy and delete everything

Hawk.deleteAll();

How does Hawk work?

More options

  • Everything is pluggable, therefore you can change any layer with your custom implementation.
  • NoEncryption implementation is provided out of box If you want to disable crypto.
Hawk.init(context)
  .setEncryption(new NoEncryption())
  .setLogInterceptor(new MyLogInterceptor())
  .setConverter(new MyConverter())
  .setParser(new MyParser())
  .setStorage(new MyStorage())
  .build();

License

Copyright 2016 Orhan Obut

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].