Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Latest commit

 

History

History
74 lines (56 loc) · 3.55 KB

changes.md

File metadata and controls

74 lines (56 loc) · 3.55 KB

Secure Preferences Release Notes:

0.1.8

  • Fix crash in Android 10 / Q due to accessing Device Serial

WARNING: SecurePreferences will fail to decrypt previously encrypted values if device is upgraded to Android 10/Q. This is due to default Salt using the Device Serial which is no longer accessible.

0.1.7

  • PR #92 to allow pass own salt

0.1.6

  • 73 Wrong parameters order in one constructor

0.1.5

  • 54 Allow to pass Salt so you don't have to use Android_ID - Thanks to @linakis
  • 38 Ensure we always return a String in getString thanks to @aeoris
  • Updated Gradle plugin v3 and Gradle wrapper to v4
  • Bumped nin SDK to 14
  • update to com.scottyab:aes-crypto:0.0.5 (sync'd with github.com/tozny/java-aes-crypto v1.1.0 on 11th Dec 2017 )

0.1.4

  • 30 prevented IllegalArgumentException: bad base-64 by not using generateKeyFromPassword(password, salt) where salt is String, using converted to byte[] before calling.
  • 31 Updates crypto dependency to version com.scottyab:aes-crypto:0.0.4 to fix issues when obfuscated
  • Support for ProGuard without the need to -keep any of the library or dependency classes(or inner classes)
  • Sample's minifyEnabled set to true

0.1.3

  • 25 fix to issue handling password change
  • Updates crypto dependency to version com.scottyab:aes-crypto:0.0.3 to help with issue #18

0.1.2

  • 22 Internal changed to local reference to shared pref file and keys from static, as this made it impossible to have multiple secure preference files.
  • 15 fixed typos, specifically destroyKeys()
  • New constructor where you can supply your own keys to aid with issue #18.
  • Additional unit tests

0.1.1

  • Fixed build issue referencing 'com.scottyab:aes-crypto' dependency (previous pointed to snapshot repo)
  • Minor tweek to build file so doesn't error if you don't have the sample app signing config

0.1.0

This release is a major refactor of the guts of secure prefs, which is Not backwards compatible with 0.4.0 and older versions yet!. So if you have an existing app using this don't upgrade. I'll be looking to add migration into a later release.

  • uses a new and stronger Crypto library under the hood
  • includes PRNG fixes that effects JellyBean devices as per google dev blog article
  • supports password based key generation so the key is not persisted
  • change password supported
  • updated sample app
  • removed test project and added tests as part of main project
  • refactored library project to standard gradle structure
  • published to maven central/added github release

Note: 0.1.0 was dependent on snapshot of aes-crypto, this is only as I was waiting for the aes-crypto repo owner to publish to maven. I've sorted this for v0.1.1+ which is no longer dependant on Snapshot repo.

0.0.4

  • Gradle support thanks @yelinaung
  • Fix for OnPreferenceChanged listener @richardleggett

0.0.3

  • Added test Project
  • Updated sample ready for playstore upload

0.0.2

  • Added methods to get/set strings un-encrypted
  • Added backup PBKDF function in case PBKDF2WithHmacSHA1 not supported
  • Refactored code to make it easier to change the AES mode and PBKDF function.
  • Increased iterations of PBKDF from 1000 to 2000.

0.0.1

  • Initial import to github I've modified the project structure.
  • Included the Android base64 class so library can be used by Android 2.1+.
  • Enhanced the sample project dumps current prefs to illustrate the fact they are stored encrypted and Base64 encoded.