Encrypt and distort audio using JAVA

I am currently working on a project to encrypt MP3 audio using JAVA and create distorted sound from this encrypted MP3 file. So far, I can encrypt the entire MP3 file using the DES encryption method. However, this encrypted file cannot be played back using an MP3 player. I know that an MP3 file has some structure (title and data, etc.), but I don’t know how to implement encryption in this file without violating the whole MP3 structure.

How to make this encrypted MP3 file available?

+4
source share
1 answer

Additional information on parsing and streaming mp3 in java: JavaLayer is an mp3 decoder that naturally implements stream processing mainly using the javazoom.jl.decoder.Bitstream class. It will skip all the tag data and provide you with raw bytes for each frame.

Another library that parses multiple mp3 streams, jaudiotagger , maybe you can drop the code too.

Both of these libraries are distributed under the LGPL, so keep in mind licensing issues.

+1
source

All Articles