---
title: "Goodbye EncryptedSharedPreferences: A 2026 Migration Guide"
url: https://daily.dev/posts/goodbye-encryptedsharedpreferences-a-2026-migration-guide-u7qca7ln0
source_url: https://www.droidcon.com/2025/12/16/goodbye-encryptedsharedpreferences-a-2026-migration-guide/
type: article
source: "droidcon"
published: 2026-01-06T09:54:20.740Z
updated: 2026-01-06T09:54:48.291Z
tags: ["security", "android", "kotlin", "encryption"]
reading_time: 6
upvotes: 1
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Goodbye EncryptedSharedPreferences: A 2026 Migration Guide

**[droidcon](https://daily.dev/sources/droidcon)** · 6 min read · 1 upvotes · 0 comments

## Summary

EncryptedSharedPreferences is deprecated as of androidx.security:security-crypto:1.1.0-alpha07 due to performance issues and reliability problems. The modern approach combines Jetpack DataStore with Google Tink for encrypted storage. DataStore provides async I/O via Coroutines, Proto DataStore adds type safety, and Tink handles stream-level encryption. The migration involves defining a Protobuf schema, creating a CryptoManager with Tink's StreamingAead, implementing an encrypted Serializer, and using DataStore's SharedPreferencesMigration API to seamlessly transfer existing data. This architecture encrypts entire files rather than individual values, offering better performance and security.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.droidcon.com/2025/12/16/goodbye-encryptedsharedpreferences-a-2026-migration-guide/>

## Similar posts on daily.dev

- [Securing Legacy Android Apps: Modern Encryption Practices](https://daily.dev/posts/securing-legacy-android-apps-modern-encryption-practices-odsmhlmnq) · The New Stack · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#android](https://daily.dev/tags/android), [#kotlin](https://daily.dev/tags/kotlin), [#encryption](https://daily.dev/tags/encryption)

[View this post on daily.dev](https://daily.dev/posts/goodbye-encryptedsharedpreferences-a-2026-migration-guide-u7qca7ln0)
