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.

Answers


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....

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

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:

http://www.winterwell.com/software/TEA.php

http://143.53.36.235:8080/tea.htm

http://143.53.36.235:8080/TEA_java_sc.txt


Need Your Help

Webview Zoom in out function

android android-layout android-intent

I have task regarding on zoom in and out function for webview. i have two buttons in and out .i want to give the zoom when clik action is done on buttons only. but i got default zoom function