The JCE is a flexible way to implement complicated crypto algorithms
and allow enhancement as better algorithms become available. It
should be great for things like applet-servlet communications.
However, if you don't need *public* key cryptography and you have
other constraints, most proprietary 
compression algorithms create files that are useless to people who don't
have access to decoder software. Throwing an additional parameter or two
( password ) into a compression algorithm could be a better option
for your application. 

Is there a discussion group somewhere specifically on cryptography and
security ? This isn't really a servlet issue!


Mike Marchywka
Senior Engineer
EyeWonder
2859 Paces Ferry Road
Suite 1200
Atlanta GA 30339
770-261-5084(W)
770-434-7510(H)
FAX: 770-261-5080
[EMAIL PROTECTED]
 

-----Original Message-----
From: Andrew Zhdanov [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 8:20 AM
To: [EMAIL PROTECTED]
Subject: Re: Encrypting sound fils


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()+"/"+opti
ons.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

___________________________________________________________________________
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

Reply via email to