diffie hellman key exchange code
#1

Hi Sir Can you send the source code for diffie hellman key exchange implemented using matlab for transfer of data It's urgent Plz Plz....
Reply
#2
diffie hellman key exchange code

Diffie Hellman Key Exchange Algorithm (Java)
import java.util.*;
class DiffieHellman
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
System.out.println(“Enter the value of Xa & Xb”);
int Xa=sc.nextInt();
int Xb=sc.nextInt();
System.out.println(“Enter a Prime no. p”);
int p=sc.nextInt();
System.out.println(“Enter Primitive Root a, such that a<p”);
int a=sc.nextInt();
int Ya=(int)((Math.pow(a,Xa))%p);
int Yb=(int)((Math.pow(a,Xb))%p);
int Ka=(int)((Math.pow(Yb,Xa))%p);
int Kb=(int)((Math.pow(Ya,Xb))%p);
if(Ka==Kb)
{
System.out.println(“Transmission successful”);
}
else
{
System.out.println(“Transmission failed”);
}
}
}
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: diffie hellman algorithm implementation in matlab, diffie hellman key exchange code, diffie hellman key exchange algorithm, diffie hellman key agreement example, key code lock, diffie hellman key exchange ppt, elliptic curve diffie hellman key exchange ppt,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  matlab code for adaptive differential pulse code modulation 1 1,118 04-04-2017, 11:49 AM
Last Post: jaseela123d
  cdot exchange bsnl 1 923 17-03-2017, 03:05 PM
Last Post: jaseela123d
  download tet key answer sparda spoorthi 1 1,575 17-03-2017, 10:52 AM
Last Post: jaseela123d
  t e t key answers 2015 at udyoga varthe 1 1,789 16-03-2017, 02:56 PM
Last Post: jaseela123d
  udyoga varte tet key answers 2015 1 1,886 27-02-2017, 03:41 PM
Last Post: jaseela123d
  icici e learning matrix answer key pdf 3 6,001 13-08-2016, 03:35 PM
Last Post: dhanabhagya
  business studies project on stock exchange 1 2,192 22-06-2016, 04:44 PM
Last Post: seminar report asees
  download tet key answer sparda spoorthi 5 2,987 21-03-2016, 03:06 PM
Last Post: dhanabhagya
  download fingerprint lock apps 8 digit registration key details 3 4,994 16-03-2016, 01:57 PM
Last Post: Aacd
  implementation of diffie hellman algorithm in matlab 3 2,629 05-11-2015, 09:17 AM
Last Post: seminar report asees

Forum Jump: