English 中文(简体)
Extend Contacts application on Android to provide encryption
原标题:

I want to encrypt individual contacts stored by the Contacts application on Android based on user s preference. So, I am thinking I ll have to hook/extend the Contacts application before the it stores data into the database and decrypt it when the user wants to view it. Also, I am assuming I will have to store the key for encryption in a file. Can anybody suggest how to go about it?

Thanks!

最佳回答

Your goal, while admirable, is impractical. There is no "Contacts application". Android has a standard Contacts content provider and related activities. That has been replaced by HTC (on Sense-enabled devices), by Motorola (on MOTOBLUR-enabled devices), and perhaps other OEMs as well. Combine that with the fact that there is no "hook/extend" mechanism for any of them, and I do not see how you can create what you are looking for.

The Android 2.0 revised Contacts API, particularly with multiple accounts, may give you more options. It may be you have to create some sort of account that represents your encrypted contacts, and you might have the hooks to do that. However, I have not had an opportunity to dig into the new API enough to say for certain whether this approach is or is not feasible. And, it still assumes that OEMs stop replacing the native Contacts stuff with their own, and that s far from certain.

问题回答

暂无回答




相关问题
Extend Contacts application on Android to provide encryption

I want to encrypt individual contacts stored by the Contacts application on Android based on user s preference. So, I am thinking I ll have to hook/extend the Contacts application before the it stores ...

Make md5 strong

Im making a website that will intergrate with game that only support md5 hashing metod (atm). Which ofc is not especially safe anymore. But how could i make it stronger? Should I just generate long ...

How to Pack/Encrypt/Unpack/Decrypt a bunch of files in Java?

I m essentially trying to do the following on a Java/JSP-driven web site: User supplies a password Password is used to build a strongly-encrypted archive file (zip, or anything else) containing a ...

Thread & Queue vs Serial performance

I though it ll be interesting to look at threads and queues, so I ve written 2 scripts, one will break a file up and encrypt each chunk in a thread, the other will do it serially. I m still very new ...

Convert PHP encryption code to C#

I m trying to convert this piece of code from PHP to C#. It s part of a Captive Portal. Could somebody explain what it does? $hexchal = pack ("H32", $challenge); if ($uamsecret) { $newchal = ...

Encryption: how to have 1 iv despite multiple fields

I ve been stuck trying to arrive at a best solution for this for a while. I know that an initialization vector has to be unique for each item being encrypted. So if I m encrypting an address and I ...

热门标签