Stay organized with collections
Save and categorize content based on your preferences.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[],null,["# androidx.security.crypto\n========================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/security/crypto/package-summary \"View this page in Kotlin\") \\|Java\n\nClasses\n-------\n\n|--------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [EncryptedFile](/reference/androidx/security/crypto/EncryptedFile) | **This class is deprecated.** Use [java.io.File](https://developer.android.com/reference/java/io/File.html) instead. \u003cbr /\u003e |\n| [EncryptedFile.Builder](/reference/androidx/security/crypto/EncryptedFile.Builder) | **This class is deprecated.** Use [java.io.File](https://developer.android.com/reference/java/io/File.html) instead. \u003cbr /\u003e |\n| [EncryptedFileKt](/reference/androidx/security/crypto/EncryptedFileKt) | |\n| [EncryptedSharedPreferences](/reference/androidx/security/crypto/EncryptedSharedPreferences) | **This class is deprecated.** Use [android.content.SharedPreferences](https://developer.android.com/reference/android/content/SharedPreferences.html) instead. \u003cbr /\u003e |\n| [EncryptedSharedPreferencesKt](/reference/androidx/security/crypto/EncryptedSharedPreferencesKt) | |\n| [MasterKey](/reference/androidx/security/crypto/MasterKey) | **This class is deprecated.** Use [javax.crypto.KeyGenerator](https://developer.android.com/reference/javax/crypto/KeyGenerator.html) with AndroidKeyStore instance instead. \u003cbr /\u003e |\n| [MasterKey.Builder](/reference/androidx/security/crypto/MasterKey.Builder) | **This class is deprecated.** Use [javax.crypto.KeyGenerator](https://developer.android.com/reference/javax/crypto/KeyGenerator.html) with AndroidKeyStore instance instead. \u003cbr /\u003e |\n| [MasterKeyKt](/reference/androidx/security/crypto/MasterKeyKt) | |\n| [MasterKeys](/reference/androidx/security/crypto/MasterKeys) | **This class is deprecated.** Use [javax.crypto.KeyGenerator](https://developer.android.com/reference/javax/crypto/KeyGenerator.html) with AndroidKeyStore instance instead. \u003cbr /\u003e |\n\nEnums\n-----\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [EncryptedFile.FileEncryptionScheme](/reference/androidx/security/crypto/EncryptedFile.FileEncryptionScheme) | **This enum is deprecated.** Use [java.io.File](https://developer.android.com/reference/java/io/File.html) instead. \u003cbr /\u003e |\n| [EncryptedSharedPreferences.PrefKeyEncryptionScheme](/reference/androidx/security/crypto/EncryptedSharedPreferences.PrefKeyEncryptionScheme) | **This enum is deprecated.** Use [android.content.SharedPreferences](https://developer.android.com/reference/android/content/SharedPreferences.html) instead. \u003cbr /\u003e |\n| [EncryptedSharedPreferences.PrefValueEncryptionScheme](/reference/androidx/security/crypto/EncryptedSharedPreferences.PrefValueEncryptionScheme) | **This enum is deprecated.** Use [android.content.SharedPreferences](https://developer.android.com/reference/android/content/SharedPreferences.html) instead. \u003cbr /\u003e |\n| [MasterKey.KeyScheme](/reference/androidx/security/crypto/MasterKey.KeyScheme) | **This enum is deprecated.** Use [javax.crypto.KeyGenerator](https://developer.android.com/reference/javax/crypto/KeyGenerator.html) with AndroidKeyStore instance instead. \u003cbr /\u003e |"]]