How to encrypt and decrypt sound files in Java?

Is there a way to encrypt and decrypt sound files such as *.wav , *.au or *.snd files in Java ?

Edit : I knew how to encrypt and decrypt text files, just curious if a sound file could be encrypted and decrypted, now it seems I can use the same methods.


Yes there is a way. It is effectively the same as encrypting/decrypting text as the API requests or returns byte arrays.

Here is a very basic example: Basic symmetric encryption example

Like any other data file you can encrypt media files using standard encryption techniques.

For starters check these links....

The Tiny Encryption Algorithm (TEA) is a fast, simple and robust block cipher designed by David Wheeler and Roger Needham. This code is released under the LGPL. The algorithm is implemented in a single class:

Need Your Help

Forcing threads in a service to wait for another thread to finish

c# .net multithreading

I'm writing a service that has five different methods that can take between 5 seconds and 5 minutes to run.

Javascript Operators Issue working with Decimals

javascript html math

I got everything almost where I want it. My only problem is that for some reason I can't get the bctf1 to add right. Say if bctf = 10, the result with the code would be 100.59 instead of 10.59. Say...

Cursor.Current vs. this.Cursor

c# .net winforms cursor cursor.current

Is there a difference between Cursor.Current and this.Cursor (where this is a WinForm) in .Net? I've always used this.Cursor and have had very good luck with it but I've recently started using Code...