Sector67 / nsa-away

NSA Away Android application repository for the Hackaday prize
hackaday.io/project/1569-NSA-Away
GNU General Public License v3.0
7 stars 0 forks source link

Changing orientation re-encrypts and uses more keys #23

Closed sphasse closed 10 years ago

sphasse commented 10 years ago

Currently changing the orientation on the display ciphertext page results in the message being re-encrypted and more key bytes being used.

erinzm commented 10 years ago

AsyncTasks are one way to do this, you can also override onConfigurationChange (which seems slightly wrong) as here.

We could also simply lock the orientation to vertical on everything, with the way we have it laid out, it'll look weird in landscape on small(er) screens.

sphasse commented 10 years ago

I am thinking a better way to resolve this will be to do the encryption in the sending page. That way the plaintext never needs to be sent in the context across pages unless we want it for some other reason. Encrypting once and displaying as many times as needed should allow us to handle orientation changes.