• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

3DES Implementation

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and iconoclast
Posts: 24203
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 23909
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx all of u....
this really helped me...

Thanx again
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic