import java.io.DataInputStream; import java.io.IOException; import java.math.BigInteger; import java.util.Random; public class RSA { private BigInteger p,q,N,phi,e,d; private int bitlength=1024; private Random r; public RSA() { r=new Random(); p=BigInteger.probablePrime(bitlength,r); q=BigInteger.probablePrime(bitlength,r); System.out.println("Prime number p is"+p); System.out.println("prime number q is"+q); N=p.multiply(q); phi=p.subtract(BigInteger.ONE).multiply(q.subtract(BigInteger.ONE)); e=BigInteger.probablePrime(bitlength/2,r); while(phi.gcd(e).compareTo(BigInteger.ONE)>0&&e.compareTo(phi)
Thank you mam for this explanation, maam if we write a program using int and not bigint,and user have to enter the values of p and q instead of random generation,will it be accepted by the examiner?
Mam pls upload videos on below two program...1. Using TCP/IP sockets, write a client - server program to make the client send the file name and to make the server send back the contents of the requested file if present. 2.Write a program on datagram socket for client/server to display the messages on client side, typed at the server side.
import java.io.DataInputStream;
import java.io.IOException;
import java.math.BigInteger;
import java.util.Random;
public class RSA
{
private BigInteger p,q,N,phi,e,d;
private int bitlength=1024;
private Random r;
public RSA()
{
r=new Random();
p=BigInteger.probablePrime(bitlength,r);
q=BigInteger.probablePrime(bitlength,r);
System.out.println("Prime number p is"+p);
System.out.println("prime number q is"+q);
N=p.multiply(q);
phi=p.subtract(BigInteger.ONE).multiply(q.subtract(BigInteger.ONE));
e=BigInteger.probablePrime(bitlength/2,r);
while(phi.gcd(e).compareTo(BigInteger.ONE)>0&&e.compareTo(phi)
Our Saviour😇! Thank you ma'am 👍🏻
Ziad op🔥
👍👍👍👍😅✊✊✊✊
@@HanaFatimapacs Even you😂🔥
@@HanaFatimapacs hehe✌🏻
@@mohammadzameer7 nindo pinne😂
U r the saviour mam thank you
Very helpfull mam! Thank you for making these videos❤
Great explaination ma’am.Would you please do videos on full CNS lab ..
It could be of great help🙏🙏🙏
yeah I will be uploading all experiments
@@roopamam7005 thank you ma’am
So helpful 💥💥💘
Thankyou mam👍, In coding part your voice is low(not clear),my kind opinion plz clear this issue in upcoming videos 🤗
Sure 🙂👍
Thank you 🙂
Thank you mam for this explanation, maam if we write a program using int and not bigint,and user have to enter the values of p and q instead of random generation,will it be accepted by the examiner?
Depends on the examiner 🙂
Mam pls upload videos on below two program...1. Using TCP/IP sockets, write a client - server program to make the client send the file name
and to make the server send back the contents of the requested file if present.
2.Write a program on datagram socket for client/server to display the messages on client side,
typed at the server side.
Sure, will upload next week
Thank you Ma'am
wish to have someone like you in KLE M S Sheshgiri college, Belgaum
Hi mam....💐💐
nice mam,thanks
How to take that m value ma'am?
Very nice madam...
Thank you!
If we execute the 5th & 6th program as you thought,is that acceptable in vtu external lab mam?
Yes!
yes bro