Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

J++ and Java for RSA

843810Jun 4 2004 — edited Jun 4 2004
i 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 2 2004
Added on Jun 4 2004
1 comment
69 views