开发者

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

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜