Posted on 2004-09-09
Last Modified: 2013-12-26

 I would like encrypt a string using java from Unix and send this encrypted text to .net server to decrypt. Below are the steps I would like to take:

Java - 1. Create MD5 has of string.
Java - 2. Encrypt using DES

send this string to .net; using I would like to:  - 1. Unencrypt using DES - 2. unhash MD5 string.

Is this possible ? If so, could you provide sample code ?


Question by:madhu_experts
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
LVL 84

Accepted Solution

ozo earned 250 total points
ID: 12023891
unhashing an MD5 string is very difficult
LVL 45

Assisted Solution

sunnycoder earned 250 total points
ID: 12024156
ozo is right ... here is what you can do

Java - 1. Create MD5 hash of string.
Java - 2. Encrypt string and hash using DES

send this string along with encrypted hash to .net; using I would like to:  - 1. Unencrypt string and hash using DES - 2.  recalculate MD5 hash for the decrypted string. - 3. Comapre this calculated hash with the decrypted hash ...

For the source code, you may get better replies if you post the question in either Java or TAs
LVL 45

Expert Comment

ID: 14361159
Disagreed ... It cannot be done and it has been said so
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 20

Expert Comment

ID: 14361198
Actually *something* can be done and the Asker was sent to other areas for coding ;) Thus the delete- no refund.
But Yes - I agree - what he initially required is not possible.
LVL 45

Expert Comment

ID: 14361275
- What can be done has been suggested ... Knowing what to code and coding it are two different things ... Trying to code something which is not possible is likely to waste some time ...

- The original question "Is this possible ? If so, could you provide sample code ?" stands answered, no it cant be done.

- DES, I believe, has export restrictions ... I am not sure how safe would it be for EE to host the code on its servers.

-  Moreover, the question is posted in Unix Programming TA .. It is unfair to expect us to be able to code in all languages esp. VB.NET ;-)

- If you still feel help was insufficient ... may I recommend a PAQ/No Refind with a lower grade?

Your call!
LVL 20

Expert Comment

ID: 14361343
Actually I think he had mistaken the area ;))

However - CHANGED RECOMMENDATION: Split points : ozo and sunnycoder
LVL 45

Expert Comment

ID: 14361423

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Expand to include initial dialog with two choices. 9 96
Use of condition with 'serial' in ansible 2 103
changeXy challenge 13 98
Authenticate using sesu from script 7 160
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question