Rockbox Development > Feature Ideas

MP3 on-the-fly decryption

(1/1)

dvl09:
What about encrypting mp3 files using a simple algorithm like Tiny Encryption Algorithm before copying them to the player ... and then decrypting them on the fly (just in memory) before or while playing in Rockbox? Could this be possible by writing a plugin or just by modifying the main code? Thanks

saratoga:
Would be easiest to modify the decoder, or just add a new file type for encrypted files that passes the decrypted data to the normal decoder like we do for AAC in real audio files.

Take a look at this commit which adds support for AAC in RM:

http://svn.rockbox.org/viewvc.cgi?view=rev&revision=22031

You'd pretty much want to do the same thing except with your decryption algorithm in there somewhere, and of course mp3 instead of aac.

Can't really see why you'd want to do this though.  

Navigation

[0] Message Index

Go to full version