Question

1. (a) Explain the terms “data encryption, authentication, and message integrity,” often used in the networks security litera

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1.

a)

Data Encryption - In computer networks, when the sender sends data to the receiver, there can be a chance that the data can be exposed or tampered by elements on the path of the data transfer. So, in order to safely transfer data from the sender to the receiver, the data is transformed to a different format, so that the attacker cannot obtain the actual data. This method is called data encryption. In data encrpytion, the source data is called the plaintext and the encrypted data is called the ciphertext.

Authentication - When a user tries to access a server , the communication is authenticated with the help of username and password. The method of identifying an user by a server or the concerned body is called authentication. Suppose, a person A wants to access his mail account. Another person B knows the mailid of the person A but not the password. When, person B tries to login, he can't access the mail account because he does not know the password. In order to have authentication of the user A, the user requires to fill the mail id as well as the password. With the help of this, the server becomes sure that the mail is accessed from the authenticated user.

Integrity - It is the characteristic of network communication which ensures that the data transmitted from the sender to the receiver is not altered or tampered in the middle of the transmission.Suppose, a teacher sends a mail to the student that there will be a cultural programme and everyone has to be present. Now, if someone tampers the message in the middle and modifies it by mentioning that the particular day is a holiday, then the student won't go to see the programme. This violates the integrity property as the message was altered in the middle of the communication.

b)

The 2 prime numbers used in RSA are :

p = 7 and q = 11.

n = p*q = 7*11 = 77

Φ(n) = (p-1)*(q-1) = 6*10 = 60.

The public key e = 13 and the private key d = 37.

These 2 are valid public and private key because according to the RSA algorithm,

( e*d ) mod Φ(n) should be equal to 1.

After putting the values of e, d and Φ(n), the respective value is :

(13*37) mod 60 = 481 mod 60.

This leaves the remainder as 1 and the quotient as 8 because 481 = 8*60 + 1.

So, it is proved that (13*37) mod 60 = 481 mod 60 = 1.

So, (e, 77) and (d,77) that is (13, 77) and (37, 77) are valid public and private keys.

c)

Given,

For encryption,

The plaintext is P = 5.

e = 13, d = 37 and n = 77.

Let the Ciphertext be C.

C = (P^e) mod n

= (5^13 ) mod 77

Using the method of modular exponentiation :

i ( 5^i ) mod 77 Output
1 5 mod 77 5
2 (5^2) mod 77 25
4 (5^4) mod 77 = ((5^2) mod 77 ) * (5^2) mod 77 )) mod 77 9
8 (5^8) mod 77 = ((5^4) mod 77 ) * (5^4) mod 77 )) mod 77 4
12 (5^12) mod 77 = ((5^8) mod 77 ) * (5^4) mod 77 )) mod 77 36
13 (5^13) mod 77 = ((5^1) mod 77 ) * (5^12) mod 77 )) mod 77 26

So,

Ciphertext C = (5^13) mod 77

= 26.

So, the number 5 is encrypted as the number 26.

For decryption,

The ciphertext is C = 5.

e = 13, d = 37 and n = 77.

Let the plaintext be P.

P = (C^d) mod 77

= (5^37) mod 77

Using the method of modular exponentiation :

i ( 5^i ) mod 77 Output
1 5 mod 77 5
2 (5^2) mod 77 25
4 (5^4) mod 77 = ((5^2) mod 77 ) * (5^2) mod 77 )) mod 77 9
8 (5^8) mod 77 = ((5^4) mod 77 ) * (5^4) mod 77 )) mod 77 4
16 (5^16) mod 77 = ((5^8) mod 77 ) * (5^8) mod 77 )) mod 77 16
32 (5^32) mod 77 = ((5^16) mod 77 ) * (5^16) mod 77 )) mod 77 25
36 (5^36) mod 77 = ((5^32) mod 77 ) * (5^4) mod 77 )) mod 77 71
37 (5^37) mod 77 = ((5^36) mod 77 ) * (5^1) mod 77 )) mod 77 47

So, the plaintext P = (5^37) mod 77

= 47.

So, the number 5 is decrypted as the number 47.

Add a comment
Know the answer?
Add Answer to:
1. (a) Explain the terms “data encryption, authentication, and message integrity,” often used in the networks...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • just need help with part c key and public key cryptography methods 2. (a) Explain the...

    just need help with part c key and public key cryptography methods 2. (a) Explain the difference between the symmetric (b) In the famou s RSA algorithm for public key cryptography, very large prime numbers are used so as to make ult for the attackers to find from their product the prime factors. However, for an illustration of the ideas behind the RSA algorithm, you could chooses two small prime numbers 7 and 11, and a public key e 13...

  • prime factorization. Assume that zoy wants to send a message to sam. sam generates public and...

    prime factorization. Assume that zoy wants to send a message to sam. sam generates public and private keys using RSA Encryption algorithm and publishes the public key (n=4717, e=19). zoy has a secret message M to send. Nobody knows the value of M. She encrypts the message M using the public key and sends the encrypted message C=1466 to sam. alex is an intruder who knows RSA and prime factorization well. She captures the encrypted message C=1466. She also has...

  • Bob is trying to send an encrypted message to Alice using the Asymmetric Key approach. Which...

    Bob is trying to send an encrypted message to Alice using the Asymmetric Key approach. Which key will Bob use to encrypt the message for Alice? Alice's Private Key Bob's Public Key Alice's Public Key Bob's Private Key Alice wants to digitally sign a message so that Bob can be assured that the message came from Alice and has not been changed in transit. Which key must Alice use to encrypt the message digest? Bob's Public Key Bob's Private Key...

  • The Diffie-Hellman public-key encryption algorithm is an alternative key exchange algorithm that is used by protocols...

    The Diffie-Hellman public-key encryption algorithm is an alternative key exchange algorithm that is used by protocols such as IPSec for communicating parties to agree on a shared key. The DH algorithm makes use of a large prime number p and another large number, g that is less than p. Both p and g are made public (so that an attacker would know them). In DH, Alice and Bob each independently choose secret keys, ?? and ??, respectively. Alice then computes...

  • QUESTION 2 Ensuring that data is genuine, meaning that the sender of the data is who...

    QUESTION 2 Ensuring that data is genuine, meaning that the sender of the data is who they say they are, that the data received is the data that the sender meant to send, and that the receiver is who they say they are a. confidentiality b. authentication c. non-repudiation d. integrity 2 points    QUESTION 3 Cryptography method that uses a single key for both encryption and decryption a. prime factorization b. asymmetric c. symmetric d. message authentication code 2...

  • 5. Consider the RSA encryption scheme, Alice wants to send a message to Bob. Both Alice...

    5. Consider the RSA encryption scheme, Alice wants to send a message to Bob. Both Alice and Bob have p= 17,9 = 19. Alice has e=31 and Bob has e=29. a. What is the public key pair used in the transmission? 2 marks b. What is the secret key pair used in the transmission? 4 marks c. Encrypt the message m=111. 4 marks d. Decrypt the resulting ciphertext. 4 marks e. What's the security problem between Alice and Bob? How...

  • // can someone explain the code line by line shortly.thanks import java.security.KeyPair; import ...

    // can someone explain the code line by line shortly.thanks import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.PrivateKey; import java.security.PublicKey; import java.util.Base64; import java.util.HashMap; import java.util.Map; import javax.crypto.Cipher; // Java 8 example for RSA encryption/decryption. // Uses strong encryption with 2048 key size. public class GlobalMembers { public static void main(String[] args) throws Exception { String plainText = "Hello World!"; // Generate public and private keys using RSA Map<String, Object> keys = getRSAKeys(); PrivateKey privateKey = (PrivateKey) keys.get("private"); PublicKey publicKey = (PublicKey)...

  • 1.Which of the following statements about asymmetric-key encryption is correct? a When using asym...

    1.Which of the following statements about asymmetric-key encryption is correct? a When using asymmetric-key encryption method, a total of two keys are necessary in electronic communication between two parties. b Employees in the same company share the same public key. c Most companies would like to manage the private keys for their employees. d Most companies would like to use a Certificate Authority to manage the public keys of their employees. e Two of the above are correct. 2 Which...

  • Write code for RSA encryption package rsa; import java.util.ArrayList; import java.util.Random; import java.util.Scanner; public class RSA...

    Write code for RSA encryption package rsa; import java.util.ArrayList; import java.util.Random; import java.util.Scanner; public class RSA {    private BigInteger phi; private BigInteger e; private BigInteger d; private BigInteger num; public static void main(String[] args) {    Scanner keyboard = new Scanner(System.in); System.out.println("Enter the message you would like to encode, using any ASCII characters: "); String input = keyboard.nextLine(); int[] ASCIIvalues = new int[input.length()]; for (int i = 0; i < input.length(); i++) { ASCIIvalues[i] = input.charAt(i); } String ASCIInumbers...

  • Consider a system where a data files (F_i, and i denotes the file ID) is distributed...

    Consider a system where a data files (F_i, and i denotes the file ID) is distributed over a cloud. A data file is generated by an author (AU_k, and k, denotes the author ID) and stored on a distribution server (DS). Only authorized users (US_1, and denotes the user ID) previously registered on the system using their private keys (KPR_1) are allowed to download the data. Users' public certificates (KPU_1) and revocation lists (CRL) are available on a trusted Certificate...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT