• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 439
  • Last Modified:

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

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
showbizint
Asked:
showbizint
2 Solutions
 
Kumaraswamy RCommented:
0
 
showbizintAuthor Commented:
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
 
hongjunCommented:
How many decryption are there exactly?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
showbizintAuthor Commented:
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
 
CodeCruiserCommented:
0
 
Meir RivkinFull stack Software EngineerCommented:
can u post the java code which encrypt the data?
0
 
Meir RivkinFull stack Software EngineerCommented:
you need the key and the salt value which used to encrypt the data.
0
 
showbizintAuthor Commented:
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
 
showbizintAuthor Commented:
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
 
showbizintAuthor Commented:
I found the solution on net
0

Featured Post

Industry Leaders: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now