• Post Reply Bookmark Topic Watch Topic
  • New Topic

3DES Implementation  RSS feed

 
Ashish Vaid
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to implement 3DES for password security on client side.
I am required to encrypt the password in Javascript on client side & then decrypt it using java on server side.

If anyone has the code for both of these, I wud be raelly grateful

Thanks
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

This example shows how to do en-/decryption in Java using JCE.

I'm not aware of any encrpytion packages for JavaScript.
 
Ashish Vaid
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for help....
But actually i require the code with CBC rather than ECB...
so if u can provide any code with CBC & also without FileStreams etc
as i am not required to use i/o file streams

Thanks again... n plz help its really urgent for me
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaRanch is not a free consulting service. We're happy to help by answering questions, but nobody's going to do your job for you, and it's insulting to us and demeaning to yourself to ask.

So, I'll ask you a question: do you know any Java programming?
 
Ashish Vaid
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I by no means want to insult anyone
n plz dont take anything as sum1 is tryin to get his/her wrk done from others
I am a java professional..only thing is that i have enver implmented 3DES
thats y i asked for help.....n this forummis for helping each other n not for chating stuf...

N i did the same...asked for help

Thank U
 
Henry Wong
author
Sheriff
Posts: 23292
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ashish Vaid:
Thanks for help....
But actually i require the code with CBC rather than ECB...
so if u can provide any code with CBC & also without FileStreams etc
as i am not required to use i/o file streams

Thanks again... n plz help its really urgent for me


Starting from Ulf's reference example, you could have searched the Java Docs for information on the Cipher class. From there, you could have found a link to the Reference Guide, which would have confirmed that CBC is a supported protocol (See Appendix A).

Using these links, it shouldn't be that hard to change the example to what you want.

Henry
[ May 12, 2006: Message edited by: Henry Wong ]
 
Ashish Vaid
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx all of u....
this really helped me...

Thanx again
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!