Computer Network Lab | VTU | Program 9 - RSA Algorithm

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 31

  • @roopamam7005
    @roopamam7005  4 роки тому +21

    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)

  • @shadezign
    @shadezign 3 роки тому +13

    Our Saviour😇! Thank you ma'am 👍🏻

  • @ashraym225
    @ashraym225 2 роки тому +1

    U r the saviour mam thank you

  • @wasfiyazarheen9775
    @wasfiyazarheen9775 3 роки тому +1

    Very helpfull mam! Thank you for making these videos❤

  • @abilashreddy7828
    @abilashreddy7828 4 роки тому +3

    Great explaination ma’am.Would you please do videos on full CNS lab ..
    It could be of great help🙏🙏🙏

  • @karthikshetty5787
    @karthikshetty5787 2 роки тому +1

    So helpful 💥💥💘

  • @arvindr6638
    @arvindr6638 3 роки тому +4

    Thankyou mam👍, In coding part your voice is low(not clear),my kind opinion plz clear this issue in upcoming videos 🤗

  • @sonalivishwakarma9351
    @sonalivishwakarma9351 3 роки тому +1

    Thank you 🙂

  • @fashiononyourway
    @fashiononyourway 3 роки тому +3

    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?

  • @hemar9030
    @hemar9030 4 роки тому +1

    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.

  • @gouthamir1807
    @gouthamir1807 3 роки тому +1

    Thank you Ma'am

  • @abhish8867
    @abhish8867 3 роки тому +2

    wish to have someone like you in KLE M S Sheshgiri college, Belgaum

  • @shanthkumark7481
    @shanthkumark7481 4 роки тому +1

    Hi mam....💐💐

  • @mahadevaswamyn6197
    @mahadevaswamyn6197 4 роки тому +2

    nice mam,thanks

  • @roopabhajantri9848
    @roopabhajantri9848 Рік тому

    How to take that m value ma'am?

  • @dhshuhsr2520
    @dhshuhsr2520 4 роки тому +1

    Very nice madam...

  • @rohiths7417
    @rohiths7417 3 роки тому +1

    If we execute the 5th & 6th program as you thought,is that acceptable in vtu external lab mam?