CS204 Assignment 2 Spring 2023

CS204 Assignment 2 Spring 2023


Assignment No. 02

Semester: Spring 2023
Cyber Law – CS204

Total Marks: 10

Due Date: 08 June 2023


●       The objective of this assignment is to enhance the knowledge of the students about:

o   Cryptography techniques

o   Categories and types of Cybercrimes.


Uploading instructions:

●       Your assignment must be in .doc or .docx format (Any other formats like scan images, pdf, bmp, etc will not be accepted).

●       Save your assignment with your ID (e.g. bc020200786.doc).

●       No assignment will be accepted through email.


Rules for Marking:

It should be clear that your assignment will not get any credit if:

●        The assignment is submitted after due date.

●        The submitted assignment does not open or file is corrupted.

●        Your assignment is copied from internet, handouts or from any other student

●        Assignment is covered from lectures 03 to 05.

For any query about the assignment, contact at cs204@vu.edu.pk

Questions:                                                  Marks 15


Question 1                                                          (Marks 5)

Use the Caesar cipher encryption method to the given word with shift key of 4 and show the complete process with each step included.



Solution: –



shift key of 4, we get



Where A=E, B=F, C=G, D=H, E=I, F=J, G=K, H=L, I=M, J=N, K=O, L=P, M=Q, N=R, O=S, P=T, Q=U, R=V, S=W, T=X, U=Y, V=Z, W=A, X=B, Y=C, Z=D




Key: – 4




D=H, I= M, R= V, E=I, C=G, T=X, A=E, T=X, T=X, A=E, C=G, K=O




Question 2                                                            (Marks 5)

Suppose your computer is infected with some kind of virus from internet free ads. That virus collects your G-mail credentials and sends bulk of emails to the multiple recipients with fake lottery ticket ads. Any recipient who clicks on the link or attachment also gets infected too.

Considering the above scenario, answer the following questions:


1)      What type of Cybercrime(s) do you observe in this scenario?


Answer: Spamming


2)      What are the preventive measures that can be taken to avoid it?


Here are five simple ways to fight spam and to protect yourself online:

●       Never give out or post your email address publicly.

●       Think before you click.

●       Do not reply to spam messages.

●       Download spam filtering tools and anti-virus software.

●       Avoid using your personal or business email address.




#CS204 #Assignment #Spring

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous post CS605 GDB 1 Solution Spring 2023 || cs605 gdb solution spring 2023 || 100% Correct Solution
Next post GDB Solution???