Solved

DES

Posted on 2004-09-09
9
299 Views
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 vb.net I would like to:

VB.net  - 1. Unencrypt using DES
VB.net - 2. unhash MD5 string.

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

Thanks.
M
 




0
Comment
Question by:madhu_experts
  • 4
  • 2
9 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 250 total points
Comment Utility
unhashing an MD5 string is very difficult
0
 
LVL 45

Assisted Solution

by:sunnycoder
sunnycoder earned 250 total points
Comment Utility
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 vb.net I would like to:

VB.net  - 1. Unencrypt string and hash using DES
VB.net - 2.  recalculate MD5 hash for the decrypted string.
VB.net - 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 VB.net TAs

http://www.experts-exchange.com/Programming/Programming_Languages/Java/
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/
0
 
LVL 45

Expert Comment

by:sunnycoder
Comment Utility
Disagreed ... It cannot be done and it has been said so
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 20

Expert Comment

by:Venabili
Comment Utility
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.
0
 
LVL 45

Expert Comment

by:sunnycoder
Comment Utility
- 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!
0
 
LVL 20

Expert Comment

by:Venabili
Comment Utility
Actually I think he had mistaken the area ;))

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

Expert Comment

by:sunnycoder
Comment Utility
:-)
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now