Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to decrypt in vb .net 1.1, which encrypted in Java

Posted on 2010-11-23
12
Medium Priority
?
437 Views
Last Modified: 2012-05-10
How can I decrypt a string in VB .NET 1.1, which is encrypted using Java Libraries
using 128 bit AES Test Key
Using Character Encoding: UTF-8
Using Encryption Algorithm: Rijndael
Encryption Provider: Cryptix
0
Comment
Question by:showbizint
12 Comments
 
LVL 29

Expert Comment

by:Kumaraswamy R
ID: 34204351
0
 

Author Comment

by:showbizint
ID: 34209881
Thanks for the link rkworlds.
But this example is about how to encrypt in VB .net and send it to Java servlet. I want to do exact opposite. The string is already encrypted using Java Library and i want to decrypt in VB .net 1.1.
0
 
LVL 33

Expert Comment

by:hongjun
ID: 34227236
How many decryption are there exactly?
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 

Author Comment

by:showbizint
ID: 34227283
The string is encrypted using java libraries... with Encryption algorithm Rijndael provider Cryptix.
Using Character Encoding: UTF-8 and 128 bit AES Test Key. It can be easily decrypt in java using these parameters but i want to decrypt in VB .NET 1.1. As far as I know its just one decryption.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 34228935
0
 
LVL 42

Expert Comment

by:Meir Rivkin
ID: 34230038
can u post the java code which encrypt the data?
0
 
LVL 42

Expert Comment

by:Meir Rivkin
ID: 34230177
you need the key and the salt value which used to encrypt the data.
0
 

Assisted Solution

by:showbizint
showbizint earned 0 total points
ID: 34235103
The java code to decript

String key = "secretkeytodecript";
String dataToDecrypt = "47FB303B47D3E0568148B71912A77C2D6CF6E2283BA47DC";
String encoding = "UTF-8";
String encAlgorithm = "Rijndael";
String encMode = "AES";
EncryptDecryptUtil decryptor = new EncryptDecryptUtil();
decryptor.setEncKey(key);
decryptor.setEncAlgorithm(encAlgorithm);
decryptor.setEncMode(encMode);      

//configure it
decryptor.configure();

//run the Decryption
String decryptedData = decryptor.decrypt(dataToDecrypt, encoding);
0
 

Accepted Solution

by:
showbizint earned 0 total points
ID: 34262537
Thanks for all the help here. I found the solution.
Converted java files to jar file and created dll out of it. Imported dll to .net project and now can use the same algorithm of java. Again thank you for looking at the problem
0
 

Author Closing Comment

by:showbizint
ID: 34289983
I found the solution on net
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

Encryption for Business Encryption (https://en.wikipedia.org/wiki/Encryption) ensures the safety of our data when sending emails. In most cases, to read an encrypted email you must enter a secret key that will enable you to decrypt the email. T…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

963 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