Course Solutions Uncategorized (Solved) : Java Complete Rsa Class Make Work Complete Dos Import Javaio Import Javautil Import Javama Q28863756 . . . .

(Solved) : Java Complete Rsa Class Make Work Complete Dos Import Javaio Import Javautil Import Javama Q28863756 . . . .

 

[Java]

I am to complete this RSA class to make it work. Complete ToDos

import java.io.*;

import java.util.*;

import java.math.BigInteger;

public class RSA_assignment

{

static Scanner console = new Scanner (System.in);

public static void main(String [] args) throwsFileNotFoundException

{

System.out.println(“Q. How to say hello on Java? : A. HelloJava!!!”);

System.out.println(“Q. How to say hello on C++? : A. HelloC++!!!”);

Scanner inFile = new Scanner (newFileReader(“Kamilla2.txt”));

long p,q;

long e;

String ggg;

ggg= inFile.next(); //e-

e=inFile.nextInt();

ggg= inFile.next(); //p=

p=inFile.nextLong();

ggg= inFile.next(); //q=

q=inFile.nextLong();

if ((p-1)%e==0||(q-1)%e==0) {System.out.println(“I must chooseanother e from teacher’s website”);}

else{ System.out.println(“gcd(e,(p-1)(q-1))=1”);

  

BigInteger nBI= BobCalculateN(p, q);  

BigInteger eBI= new BigInteger(“”+e);

System.out.println(“p=”+p+” q=”+q);

BigInteger dBI=BobCalculateD(p, q, e );

System.out.println(“dBI=”+dBI);

String mStr; //message

long m; //coded value as for a=01,b=02,.. z=26

// if a is first it coded 1, etc.

ggg= inFile.next();

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Assembly Language Solve Following Questions Convert Following Arithmetic Expression Assemb Q26206897 . . . .(Solved) : Assembly Language Solve Following Questions Convert Following Arithmetic Expression Assemb Q26206897 . . . .

InAssembly Language, solve the following questions:<br/><br/>Convert the following arithmetic expression to assembly code.(VAR1 is SDWORD)<br/>EAX = [(BX*CX) + EDX] MOD [(EAX/EBX) - VAR1]<br/>Please explain the steps briefly... Appreciated. Expert