secure-preferences icon indicating copy to clipboard operation
secure-preferences copied to clipboard

Encrypt key with Androidkeystore key

Open scottyab opened this issue 11 years ago • 3 comments

Add the option for developers to enable additional security on API:18+ using the Androidkeystore.

Androidkeystore is for RSA (and EC since 4.4) certs so use a newly generated one to encrypt the keys used for the key and value encryption

scottyab avatar Nov 08 '13 15:11 scottyab

Any plans to look at this any time soon? I might fork and attempt to implement this. Would be particularly interesting if it can be hardware-backed.

hubert3 avatar Jun 26 '14 00:06 hubert3

@hubert3 wow, it's been a year since you asked this question, apologies for the slooooow response. My time is a limiting factor at the moment, so no current plans. I would love to add this functionality, especially given min SDK 18 is getting more and more acceptable.

Worth checking this article as there are a couple of edge cases with the keystore. Android Security: The Forgetful Keystore

scottyab avatar Jul 16 '15 15:07 scottyab

Addressed in https://github.com/scottyab/secure-preferences/pull/58 looking forward to include this once revamp of the library has been completed

scottyab avatar Dec 11 '17 10:12 scottyab