Question

In: Computer Science

implement this crypto algorithm: Compare observed performance differences and differences in the implementation techniques. just implement...

implement this crypto algorithm: Compare observed performance differences and differences in the implementation techniques.

just implement a crypto algorithm

Solutions

Expert Solution

Question Asked :

Requirement Given: Just Implement Crypto Algorithm.

Answer:

There are many Crypto Algorithms like Diffie Hellman,RSA,Cramer Shoup Crypto System,Elgamal Encryption Etc.

I have Implemented RSA Crypto Algorithm(Rivest Shamir Adleman) :

Example of RSA Functiniong:

Step 1: For Suppose Consider P=17, Q=11

Step 2: N=PQ=17*11=187

Step 3: Function of N f(N): (P-1)*(Q-1) =16*10=160

Step 4: gcd(e,160)=1 choose e=7; (According to Question to be taken)

Step 5: D: de= 1mod160 and D<160 Value is D =23 since 23*7=161=10*160+1

Step 6: Public Key KU=7 and 187

Step 7: Private Key: 23 and 187

Step 8: Encryption

C=88 Mod 187=11

Step 9: Decryption

M= 1123  Mod 187 =88.

The Above Example is Explained and  Elaborated Step By Step . Looks tough for First Time ,Revise it again to make your understanding Clear.

Tip: Directly Go through Encryption and Decryption (Step 8 and Step 9) which is enough to Understand RSA Algorithm .

I have written RSA Algorithm Code in Java Language for You (Implemented in Eclipse IDE)

For Running of Codes import these Lines of Code:

import java.util.*;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.Signature;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;

Proof of Implementation of RSA Algorithm in JAVA:

In the Comment Lines I have mentioned the Procedure of the Code in which it is implemented.

Thank You


Related Solutions

In this activity, we are going to implement the previous algorithm in Java. Just in case,...
In this activity, we are going to implement the previous algorithm in Java. Just in case, here is problem again: This program calculates and displays a person's body mass index (BMI). The BMI is calculated as the weight times 703 divided by the height squared where the weight is measured in pounds and the height in inches. The program should display a message indicating whether the person has optimal weight (BMI between 18.5 and 25), is underweight (BMI is less...
Kindly summarize this Literature Review Section 3.2 Efficient Techniques and Performance Measurement Recently, developed techniques compare...
Kindly summarize this Literature Review Section 3.2 Efficient Techniques and Performance Measurement Recently, developed techniques compare the efficiency of similar service organizations by explicitly considering their use of multiple inputs to produce multiple outputs. These new efficiency techniques are often divided into two categories. One broad category consists of the linear programming procedures used in this paper (DEA). The second category is a set of regression-based techniques that derive inefficiency estimates from two-part error terms, and has been called the...
discuss the differences and similarities (implementation and performance) between the solution for 0-1 knapsack problem using...
discuss the differences and similarities (implementation and performance) between the solution for 0-1 knapsack problem using Backtracking versus Branch and Bound. Do not just define the algorithms compare the performance and implementation of the 0-1 knapsack problem
Explain major differences of a balanced scorecard (BSC) compared to more traditional (financial) performance management techniques....
Explain major differences of a balanced scorecard (BSC) compared to more traditional (financial) performance management techniques. Describe … The characteristics of a good BSC BSC as a tool for strategy Pitfalls of implementing a BSC Effectiveness of BSC approaches as performance management system [25 marks]
Compare the differences between qualitative versus quantitative research method providing comparisons concerning techniques, operation, methods, sources,...
Compare the differences between qualitative versus quantitative research method providing comparisons concerning techniques, operation, methods, sources, and constructed theory. Assess the development of theory explaining how theory is formulated, and evaluate the various types of methods needed to construct sound qualitative (nomological) metaphors and paradigms compared to the quantitative aspects of hypotheses design and the scientific methods used to build different types of theories. Recommend what research tools provide best practice in the identification, acquisition, evaluation, and application of different...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT