Hello Vinay,
Tuesday, June 19, 2001, 1:16:05 PM, you wrote:
VT> Hello Every body,
VT> We are building a application, in which we want to encrpt the sound
VT> files i.e. (.wav) files initially. When we are going to play those files we
VT> will decrypt it and play.................any suggestion how is it possible
VT> in as best as possible.
See SUN JCE lib - javax.crypto package. There you can
Cipher cipher =
Cipher.getInstance(options.getAlgorithm()+"/"+options.getMode()+"/"+options.getPadding());
byte[] m = str.getBytes();
cipher.init(Cipher.ENCRYPT_MODE, secret_key);
byte[] cm = cipher.doFinal(m);
where SecretKey secret_key - is another interesting and complicated
thing - you'd better to see tutorial(userguide) for that.
http://java.sun.com/products/jce/index.html
it seems to be the easest way.
Another way is to use cryptix - not official (I mean SUN provider is
in J2EE) http://www.cryptix.org - there should be also final
documentation.
that seems to be very interesting - because of a great deal of
implemented algorithms.
but of course all that is not for encrypting sound files but any
files, may be you need smth special(
--
Best regards,
Andrew
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html