Encrypt Decrypt Files Android: How-To Guide
In this article
- Background: What Android Encryption Actually Does
- How File Encryption Works on Android
- Using Built-in Android Features
- Third-Party Apps for File Encryption
- Step-by-Step: Encrypting a File with OpenKeychain
- Common Problems and Misconceptions
- How to Choose the Right Method
- Safety and Best Practices
- Alternatives to File Encryption
- Frequently Asked Questions
Yes, you can encrypt and decrypt files directly on an Android device, and the method you should use depends on whether you need to protect files from other users of the same phone or secure them for transfer or cloud storage. This guide covers the built-in Android encryption, file-level encryption with third-party apps, and the command-line tools that power them, so you can choose the right approach for your specific files.
Background: What Android Encryption Actually Does
Modern Android devices (running Android 6.0 and later) have full-disk encryption or file-based encryption enabled by default. This means that all data on the internal storage is scrambled using a key derived from your lock screen PIN, pattern, or password. When you unlock your phone, the key is loaded into memory, and the system decrypts files as apps read them. This protects your data if the device is lost or stolen—the data is unreadable without the unlock credentials. However, this does not protect individual files from being read by another app on the same phone, nor does it protect files you copy to a microSD card or share via cloud services. For that, you need file-level encryption.
How File Encryption Works on Android
File-level encryption uses a symmetric or asymmetric cipher to scramble a file's contents, requiring a password or key to restore them. The most common algorithms are AES (Advanced Encryption Standard) with 128- or 256-bit keys, and RSA for public-key encryption. On Android, the standard way to encrypt a file is to use an app that implements these algorithms, such as Crypt4All, EDS Lite, or OpenKeychain (for OpenPGP). These apps typically let you select a file, choose a password or key, and produce a new file with an extension like .enc or .gpg. Decryption is the reverse: you open the app, select the encrypted file, enter the correct password or select the private key, and the app restores the original file.
Using Built-in Android Features
Android itself does not offer a simple “encrypt this file” button in the file manager. The built-in encryption is whole-device, not per-file. However, you can use the secure folder feature (on Samsung devices) or Private Space (on Pixel devices running Android 15+) to store sensitive files in an encrypted container that requires separate authentication. These are convenient for hiding files from casual snoopers, but they are not portable—the encrypted container stays on the device. If you want to send an encrypted file to someone else, you need a third-party app that uses a standard format like OpenPGP.
Third-Party Apps for File Encryption
Several reputable apps provide file-level encryption on Android. Here are common options and their trade-offs:
- OpenKeychain – Implements OpenPGP, the same standard used by desktop tools like GnuPG. It can encrypt files for a recipient’s public key, sign files, and decrypt messages. It’s open-source and integrates with other apps.
- Crypt4All – Uses AES-256 with a password. It’s simple and fast, but the encrypted files are only decryptable by Crypt4All or its desktop companion (Crypt4All Lite).
- EDS Lite – Creates encrypted containers (like a virtual drive) where you can store multiple files. It supports TrueCrypt/VeraCrypt formats, so you can open the same container on a PC.
- Solid Explorer or MiXplorer – Some file managers include a built-in encryption feature (often AES-128) that lets you right-click a file and encrypt it with a password. The encrypted file can be decrypted by the same file manager or its desktop counterpart.
When choosing an app, check whether it uses a standard, documented format (like OpenPGP or VeraCrypt) so your files aren’t locked into a proprietary system. Also, verify that the app has not been abandoned—a discontinued app might not receive security updates.
Step-by-Step: Encrypting a File with OpenKeychain
- Install OpenKeychain from the Google Play Store or F-Droid.
- Open the app and create a new key pair (or import an existing one). You’ll set a passphrase that protects your private key.
- Use a file manager that integrates with OpenKeychain (e.g., Amaze, Solid Explorer) or use the “Encrypt” option in the OpenKeychain share menu.
- Select the file you want to encrypt, choose the recipient’s public key (or your own), and tap the encrypt button.
- The app creates a new file with a
.gpgor.pgpextension. The original file remains untouched—you should delete it separately if you want only the encrypted version.
To decrypt, open the encrypted file with OpenKeychain, enter your passphrase, and choose a destination folder. The app will restore the original file.
Common Problems and Misconceptions
One frequent mistake is assuming that device encryption protects files you share. It doesn’t. Another is losing the password—if you forget the password for file encryption, there is no recovery method. The data is mathematically impossible to decrypt without the key. Also, be aware that some apps only encrypt the file name or only the contents, not both. Check the app’s documentation to see what is covered.
Another misconception: “I can just rename the file to .enc and it’s encrypted.” That is false—renaming does not change the content. True encryption requires a cipher. Similarly, compressing a file into a ZIP with a password is not the same as encryption; ZIP passwords are often weak and can be cracked with brute-force tools.
How to Choose the Right Method
Consider your threat model:
- Protect from someone who finds your phone: Use the built-in device lock (PIN, password, biometric). That’s sufficient.
- Protect files from other users of the same phone: Use a secure folder or private space, or encrypt individual files with an app.
- Send encrypted files to a friend: Use OpenPGP (OpenKeychain) so your friend can decrypt with their own key or a shared passphrase.
- Store files in the cloud: Encrypt them locally before uploading, so the cloud provider cannot read them.
For most people, the built-in device encryption is enough for everyday use. File-level encryption adds complexity, so only use it when you have a specific need.
Safety and Best Practices
- Always use a strong, unique password for file encryption—at least 12 characters, mixing upper/lowercase, numbers, and symbols.
- Keep a backup of your encryption keys (e.g., your OpenPGP private key) in a secure location. If you lose it, you lose access to your files.
- When encrypting a file, remember to securely delete the original if you don’t want it to remain. Use a file shredder or overwrite the file with random data before deletion.
- Be cautious when downloading encryption apps—stick to well-known, open-source apps with a good reputation. Check the number of downloads and recent updates.
- Never share your encryption password or private key via email or messaging apps. Use a separate secure channel.
Alternatives to File Encryption
If you need to protect sensitive data on Android, there are alternatives to per-file encryption:
- Encrypted containers: Apps like EDS Lite create a single encrypted file that acts like a folder. You mount it, add files, then unmount it. This is convenient for many files.
- Secure cloud storage: Some cloud providers offer end-to-end encryption (e.g., Tresorit, Sync.com) where files are encrypted on your device before upload. However, you still need to trust the provider.
- Vault apps: Apps like KeepSafe or GalleryVault hide photos and videos behind a PIN, but they are often not true encryption—they just move files to a hidden folder. Use with caution.
Frequently Asked Questions
Can I decrypt a file on Android that was encrypted on a PC?
Yes, if the encryption format is standard. For example, a file encrypted with GnuPG (OpenPGP) on a PC can be decrypted with OpenKeychain on Android. Similarly, a VeraCrypt container created on a PC can be opened with EDS Lite. Proprietary formats may not be compatible.
Is it safe to use a cloud app that encrypts files?
It depends on the app. If the app does client-side encryption (encrypts before upload) and you hold the key, then it’s generally safe. If the app only encrypts in transit or on the server, the provider can access your data. Read the app’s privacy policy to see where encryption happens.
What happens if I forget the encryption password?
There is no way to recover the file. The encryption is designed so that only someone with the correct password or key can decrypt. Your only hope is to have a backup of the original unencrypted file or a password hint. Always keep a backup of important files.
Does Android’s built-in encryption slow down the phone?
Modern devices have hardware acceleration for AES, so the performance impact is minimal. On older devices, you might notice slightly slower read/write speeds, but it’s usually not noticeable in everyday use.
Can I encrypt files on an SD card?
Yes, you can encrypt individual files on an SD card using an app like Crypt4All or OpenKeychain. However, Android’s built-in encryption does not cover external SD cards (unless you format it as internal storage, which is not recommended). For sensitive data on SD, use file-level encryption.