android - Can media such as photos, music, etc be encrypted? -


i looking method encrypt media can read while person has "active" account eg. media cannot stolen... seem not make sense if application displaying media can decrypt media , display actual photo.

is encryption slow?

you can achieve such functionality using two-way encryption/decryption, based on password phrase (in binary format) , two-way encryption algorythm, xor example.

xor encryption/decryption has linear complexity, it's extremely fast , hard crack encrypted data if don't know encryption algorythm has been used in first place.

the actual xor password phrase can associated user's account. long account active, password phrase can accessed , therefore encrypted media can decrypted. if user offline (logged out), password phrase inaccessible , therefore encrypted media stays encrypted.

this can implemented service - user downloads music can played while user logged in (i.e. has means access password phrase decrypt music , play it).

if key random , @ least long message, xor cipher more secure when there key repetition within message.[3] when keystream generated pseudo-random number generator, result stream cipher. key random, result one-time pad, unbreakable in theory.

http://en.wikipedia.org/wiki/xor_cipher


Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

css - SVG using textPath a symbol not rendering in Firefox -

order - Notification for user in user account opencart -