Right, but even if you did that, wouldn't you still have to store that key somewhere?
Also, hi from downstairs!
Also, hi from downstairs!
2) If you get physical access to the device, you can pull the DB and whatever IDs are involved. Without encryption, this is game over instantly; with encryption, your goal is to delay it as long as humanly possible.
key = hash(hardware serial number, user password)
And then store the key only in memory every time the user unlocks the phone and wipe it from memory when they lock their phone?