J++ and Java for RSA
843810Jun 4 2004 — edited Jun 4 2004i have two codes
1- written in visual J++
2- java
all the code is same except following:
J++ uses:
------------
import com.ms.wfc.io.*;
File inputFile;
inputFile = File.open("C:\\kaynakDosya");
x = readB=kaynakD.readBytes(2);
java uses:
-------------
import java.io.*;
private FileInputStream input;
input = new FileInputStream("C:\\inputFile.txt");
byte[] buf = new byte[2];
x = input.read(buf);
other parts are same codes that makes binary and mathematical calculations for encrption.
as you guess these calculations are to much but in Windows j++ code calculates very fast unlike java about 15 times slower
how can solve this problem. Thanks for your help.