0% found this document useful (0 votes)
115 views1 page

Cryptography Lab Assignment

The document provides a lab assignment to write programs in C/C++ to implement various cryptography algorithms and number theory problems. The assignment includes writing programs to perform Caesar cipher, Vigenere cipher, simple substitution cipher, railfence cipher, hill cipher, computing GCD using Euclidean algorithm, checking for multiplicative inverse using brute force, Extended Euclidean algorithm, primality checking, and computing the totient of a number. The student's name and roll number should be printed at the end of each program.

Uploaded by

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

Cryptography Lab Assignment

The document provides a lab assignment to write programs in C/C++ to implement various cryptography algorithms and number theory problems. The assignment includes writing programs to perform Caesar cipher, Vigenere cipher, simple substitution cipher, railfence cipher, hill cipher, computing GCD using Euclidean algorithm, checking for multiplicative inverse using brute force, Extended Euclidean algorithm, primality checking, and computing the totient of a number. The student's name and roll number should be printed at the end of each program.

Uploaded by

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

CRYPTOGRAPHY LAB ASSIGNMENT

Write a program in C/C++ to implement following problems and prepare a lab report. Print your name
and roll number at the end of each question. Provide three inputs to each problem, one of them being
your full name or your roll number (if applicable). Choose other two inputs as you want.

1. Write a program to implement Caesar Cipher.


2. Write a program to implement vigenere cipher.
3. Write a program to implement simple substitution cipher.
4. Write a program to implement railfence cipher.
5. Write a program to implement hill cipher.
6. Write a program to compute GCD of two integers using Euclidean algorithm
7. Write a program to check whether a number is multiplicative inverse of another number or not
using brute force approach.
8. Write a program to implement Extended Euclidean algorithm
9. Write a program to check whether a given number is prime or not.
10. Write a program to perform primality checking using Rabin-Miller algorithm.
11. Write a program to compute Totient of a number.

You might also like