My problem is actually a bit more complicated than just how to use AES in VB.NET, since what I'm really trying to do is use AES in VB.NET from within a Java application across JACOB. But for now, what I need to focus on is the AES implementation itself.
I realize AesCryptoServiceProvider is part of .NET framework 3.5. I do have 3.5 installed. However, (I can't believe I don't know this), how can I utilized Framework 3.5 so I can access the AesCryptoServiceProvider? Currently, it points to 2.0.
I need to reference a C++ dll from my Java project. The method that I need to expose is actually written in Visual Basic. Is there any way to access the Visual Basic code in C++, so that it can eventually be accessed in the Java project?
`I want to encode my string using .net and pass it to a java program. I am using the same program for encryption and decryption on both the sides. But the java program and .net programs are returning different MD5 hash codes.Here are the codes for both my programs :
VB.net
md5Provider = New MD5CryptoServiceProvider() input = UTF8Encoding.UTF8.GetBytes(sSecurityKey) oHash = oMd5CryptoServiceProvider.ComputeHash(input)[code]....
The problem is that m.digest() from java and oHash from vb.net are different. So i cant go further with DES encryption.
Is there any code in vb.net or java to get ID of computer >>?? I want to write a program which could get id of computer in order to make a license of software like microsoft did ?
I'm trying to compile java files in a folder that contains a batch compiler. The application starts the compiler and redirects the output to a textbox in the form.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim mypro As New Process() Dim myproinfo As New ProcessStartInfo(FolderBrowserDialog1.SelectedPath + "/compiler.bat") myproinfo.UseShellExecute = False
[code].....
My compiler is like this.
@echo off Title Compiler "C:\Program Files\Java\jdk1.6.0_01\bin\javac.exe" *.java pause
I have a bit of an issue.I have a ton of functionality written in java and have been asked to investigate how to consume it from a .net application.Can anyone point me in the right direction as I havent a clue.For some reason wcf came to mind but I am pretty certain that wont fit. AAAArrrrgggghhhhh
This program consist of addition, subtracting,multiplyin and divide,..all my calculations here are workin right but i need help setting up the a statement which display diff instead of sum...this is saying that im gettin for example 5 -4 equals 1..but instead sayin this diff 5 4 1 ..it says sum 5 4 1 ..as u can see i does get the result but i want to replace the sum for diff.[code]...
I was wondering if someone could tell me the best way to call a Visual Basic program from Java. I have a few VB applications that I want to run from a Java application that I'm building.
In order to call a java class in vb, I found the following procedure and I tried.
(1) create a java class (eg: MyTest .java)
as public class MyTest { public int myfunction(int value1, int value2) { return value1+value2; }
(2) compile to get a MyTest.class
(3)register Mytest.class using javareg.exe file from Microsoft SDK for Java using javareg /register /class:MyTest /progid:MyTest and see a MessageBox displayed with Succesfull register Class message
(4) copy MyTest.class to C:WinntJavaTrustlib
(5) open a New Project on Visual Basic. And paste this brief code on the Form Load event for example and run it. Set x = CreateObject("MyTest") MsgBox x.myfunction(1, 1)
I did all the above steps but when I run the vb program (Step 5), I get the error message "Cannot create ActiveX component". Unhandled Exception message.
I have written some classes in C# and compiled it. Now I have the library file for these classes. Can I use the same dll with Java?I do not want to write it in Java once again because I am writing the same program in different languages (trying to do so)
I am working on a Java project and I am having some difficulties with importing a .class file. Unfortunately I do not have access to the source code of the file?
My problem is I coded an arraylist of 2D arrays of string in java but the stupid GUI creator does not handle control arrays so I decided to port this to VB.I declared my arraylist like this in java:
ArrayList<String[][]> mytable = new ArrayList<String[][]>(); mytable.add(new String[5][17]);
There is logic to control the x and y parameters, but basically, I load my arraylist like this:
for (i = 0 ; i < sToken.length ; i++) mytable.get(x)[y][i]=sToken[i];
I was thinking initially:
mylist = New ArrayList Dim mytable(5, 17) As String
mylist.add(mytable.Clone) as this will continuously add a blank array but I am unsure of the syntax on how to fill it or or if this will work.