0% found this document useful (0 votes)
4 views2 pages

Questions

The document outlines a series of programming tasks across C and Java, including string manipulation, encryption algorithms (Ceaser, Substitution, Hill, RSA, DES, Blow Fish, Rijndael), and message digest calculation using SHA-1. It also includes the implementation of the Diffie-Hellman Key Exchange mechanism using HTML and JavaScript. Each section specifies the requirements for coding various cryptographic techniques and algorithms.

Uploaded by

pp2131910
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Questions

The document outlines a series of programming tasks across C and Java, including string manipulation, encryption algorithms (Ceaser, Substitution, Hill, RSA, DES, Blow Fish, Rijndael), and message digest calculation using SHA-1. It also includes the implementation of the Diffie-Hellman Key Exchange mechanism using HTML and JavaScript. Each section specifies the requirements for coding various cryptographic techniques and algorithms.

Uploaded by

pp2131910
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1 (a) Write a C program that contains a string (char pointer) with a value \Hello World’.

The
program should XOR each character in this string with 0 and displays the result.

(b) Calculate the message digest of a text using the SHA-1 algorithm in JAVA

2(a) Write a Java program to perform encryption and decryption using the following algorithms:

a) Ceaser Cipher

b) Substitution Cipher

c) Hill Cipher

(b) Write a Java program to implement RSA Algorithm

3(a) Implement the Diffie-Hellman Key Exchange mechanism using HTML and JavaScript.
Consider the end user as one of the parties (Alice) and the JavaScript application as other party
(bob).

(b) Write a Java program to implement the DES algorithm logic

4(a) Write a C program that contains a string (char pointer) with a value \Hello World’. The
program should AND or and XOR each character in this string with 127 and display the result.

(b) Write a Java program to implement RSA Algorithm

5(a) Write a C/JAVA program to implement the Blow Fish algorithm logic

(b) Write a Java program to perform encryption and decryption using the following algorithms:

a) Ceaser Cipher

b) Substitution Cipher

c) Hill Cipher.

6(a) Write a C/JAVA program to implement the Rijndael algorithm logic.


(b) Using Java Cryptography, encrypt the text “Hello world” using Blow Fish. Create your
own key using Java key tool.

7(a) Calculate the message digest of a text using the SHA-1 algorithm in JAVA

(b) Write a Java program to implement the DES algorithm logic

8(a) Write a C program that contains a string (char pointer) with a value \Hello World’. The
program should XOR each character in this string with 0 and displays the result.

(b) Write a C/JAVA program to implement the Rijndael algorithm logic

You might also like