UML Lab Manual for Cryptography
UML Lab Manual for Cryptography
NETWORK SECURITY,
CRYPTOGRAPHY
#include <stdlib.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>
Void main()
(
Clrscr()
Char str[]=”HelloWorld”;
Char str1 [11];
int I,len;
len=strlen(str);
for(i=0;i<len;i++)
{
Str1[i]=str[i]^0;
Printf(“%c”,str1[i]);
}
Printf(“\n”);
getch();
}
OUTPUT:
#include <stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
Void main()
(
Clrscr()
Char str[]=”HelloWorld”;
Char str1 [11];
Char str2[11];
int I,len;
len=strlen(str);
for(i=0;i<len;i++)
{
Str1[i]=str[i]&127;
Printf(“%c”,str1[i]);
}
Printf(“\n”);
for(i=0;i<len;i++)
(
Str2[i]=str[i]^127;
}
Printf(“\n”);
getch();
}
OUTPUT:
3. Aim:- write a java program to perform encryption and decryption using the following
algorithms a. ceaser cipher b. substituaion cipher c. hill cipher
The Caesar cipher is a technique in which an encryption algorithm is used to change some text for
gaining integrity, confidentiality, or security of a message. In cryptography there are many algorithms
that are used to achieve the same, but Caesar cipher is the earliest and easiest algorithm used among
encryption techniques. This algorithm was named after Julius Caesar who was a Roman general and
statesman.
Aim: Write a Java program to perform encryption and decryption using Ceaser Cipher algorithm:
import [Link];
// Encrypt method
public static String encrypt(String message, int shiftKey) {
message = [Link](); // Ensure all letters are lowercase
StringBuilder cipherText = new StringBuilder();
OUTPUT:
import [Link];
[Link]();
}
}
Output :
Enter plaintext to encrypt: HELLO
Encrypted Text: ITSSG
Decrypted Text: HELLO
In classical cryptography, the hill cipher is a polygraphic substitution cipher based on Linear
Algebra. It was invented by Lester S. Hill in the year 1929. In simple words, it is a cryptography
algorithm used to encrypt and decrypt data for the purpose of data security.
The algorithm uses matrix calculations used in Linear Algebra. It is easier to understand if we have
the basic knowledge of matrix multiplication, modulo calculation, and the inverse calculation of
matrices.
In hill cipher algorithm every letter (A-Z) is represented by a number moduli 26. Usually, the simple
substitution scheme is used where A = 0, B = 1, C = 2…Z = 25 in order to use 2x2 key matrix.
Aim: Write a Java program to perform encryption and decryption using Hill Cipher algorithm:
import [Link].*;
import [Link];
import [Link];
import [Link];
public class HillCipherExample {
int[] lm;
int[][] km;
int[] rm;
static int choice;
int [][] invK;
if(choice ==1){
calLineMatrix(temp);
multiplyLineByKey([Link]());
showResult([Link]());
}
else{
calLineMatrix(temp);
[Link]([Link]());
showResult([Link]());
}
}
else if ([Link]() < s)
{
for (int i = [Link](); i < s; i++)
temp = temp + 'x';
if(choice ==1){
calLineMatrix(temp);
multiplyLineByKey([Link]());
showResult([Link]());
}
else{
calLineMatrix(temp);
multiplyLineByInvKey([Link]());
showResult([Link]());
}
}
}
public void calKeyMatrix(String key, int len)
{
km = new int[len][len];
int k = 0;
for (int i = 0; i < len; i++)
{
for (int j = 0; j < len; j++)
{
km[i][j] = ((int) [Link](k)) - 97;
k++;
}
}
}
public void calLineMatrix(String line)
{
lm = new int[[Link]()];
for (int i = 0; i < [Link](); i++)
{
lm[i] = ((int) [Link](i)) - 97;
}
}
public void multiplyLineByKey(int len)
{
rm = new int[len];
for (int i = 0; i < len; i++)
{
for (int j = 0; j < len; j++)
{
rm[i] += km[i][j] * lm[j];
}
rm[i] %= 26;
}
}
public void multiplyLineByInvKey(int len)
{
rm = new int[len];
for (int i = 0; i < len; i++)
{
for (int j = 0; j < len; j++)
{
rm[i] += invK[i][j] * lm[j];
}
rm[i] %= 26;
}
}
case 1:
resultOfDet = A[0][0];
break;
case 2:
resultOfDet = A[0][0] * A[1][1] - A[1][0] * A[0][1];
break;
default:
resultOfDet = 0;
for (int j1 = 0; j1 < N; j1++)
{
int m[][] = new int[N - 1][N - 1];
for (int i = 1; i < N; i++)
{
int j2 = 0;
for (int j = 0; j < N; j++)
{
if (j == j1)
continue;
m[i - 1][j2] = A[i][j];
j2++;
}
}
resultOfDet += [Link](-1.0, 1.0 + j1 + 1.0) * A[0][j1]
* calDeterminant(m, N - 1);
} break;
}
return resultOfDet;
}
public void cofact(int num[][], int f)
{
int b[][], fac[][];
b = new int[f][f];
fac = new int[f][f];
int p, q, m, n, i, j;
for (q = 0; q < f; q++)
{
for (p = 0; p < f; p++)
{
m = 0;
n = 0;
for (i = 0; i < f; i++)
{
for (j = 0; j < f; j++)
{
b[i][j] = 0;
if (i != q && j != p)
{
b[m][n] = num[i][j];
if (n < (f - 2))
n++;
else
{
n = 0;
m++;
}
}
}
}
fac[q][p] = (int) [Link](-1, q + p) * calDeterminant(b, f - 1);
}
}
trans(fac, f);
}
void trans(int fac[][], int r)
{
int i, j;
int b[][], inv[][];
b = new int[r][r];
inv = new int[r][r];
int d = calDeterminant(km, r);
int mi = mi(d % 26);
mi %= 26;
if (mi < 0)
mi += 26;
for (i = 0; i < r; i++)
{
for (j = 0; j < r; j++)
{
b[i][j] = fac[j][i];
}
}
for (i = 0; i < r; i++)
{
for (j = 0; j < r; j++)
{
inv[i][j] = b[i][j] % 26;
if (inv[i][j] < 0)
inv[i][j] += 26;
inv[i][j] *= mi;
inv[i][j] %= 26;
}
}
//[Link]("\nInverse key:");
//matrixtoinvkey(inv, r);
invK = inv;
}
public int mi(int d)
{
int q, r1, r2, r, t1, t2, t;
r1 = 26;
r2 = d;
t1 = 0;
t2 = 1;
while (r1 != 1 && r2 != 0)
{
q = r1 / r2;
r = r1 % r2;
t = t1 - (t2 * q);
r1 = r2;
r2 = r;
t1 = t2;
t2 = t;
}
return (t1 + t2);
}
public void matrixtoinvkey(int inv[][], int n)
{
String invkey = "";
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
invkey += (char) (inv[i][j] + 97);
}
}
[Link](invkey);
}
public boolean check(String key, int len)
{
calKeyMatrix(key, len);
int d = calDeterminant(km, len);
d = d % 26;
if (d == 0)
{
[Link]("Key is not invertible");
return false;
}
else if (d % 2 == 0 || d % 13 == 0)
{
[Link]("Key is not invertible");
return false;
}
else
{
return true;
}
}
public static void main(String args[]) throws IOException
{
[Link]("Result:");
[Link]([Link], size);
[Link](line, size);
}
}
}
}
OUTPUT
Menu:
1: Encryption
2: Decryption
1
Enter the line:
helloworld
Enter the key:
mble
Result:
kpnjiidofd
Menu:
1: Encryption
2: Decryption
2
Enter the line:
kpnjiidofd
Enter the key:
mble
Result:
helloworld
import [Link].*;
import [Link]; import
[Link]; import
[Link]; import
[Link];
import [Link];
DESEDE_ENCRYPTION_SCHEME; keyAsBytes =
[Link](UNICODE_FORMAT); myKeySpec
= new DESedeKeySpec(keyAsBytes);
mySecretKeyFactory = [Link](myEncryptionScheme); cipher
= [Link](myEncryptionScheme);
key = [Link](myKeySpec);
}
publicString encrypt(String unencryptedString)
= [Link](encryptedText); }
catch (Exception e)
{ [Link](); }
returnencryptedString; }
publicString decrypt(String encryptedString)
{ String decryptedText=null;
try {
[Link](Cipher.DECRYPT_MODE, key);
catch (Exception e)
OUTPUT:
Enter the string: Welcome String
To Encrypt:Welcome
Encrypted Value : BPQMwc0wKvg=
decrypted[i]=(decrypted[i]*encrypted[i])%n;
}
[Link]("\n Decrypted message\n ");
for(i=0;i<nofelem;i++)
[Link]((char)(decrypted[i]+96));
return;
}
}
OUTPUT:
Enter the text:
hello
Enter the value of P and Q :
5
7
Encrypted Text is: 8 h 10 j 17 q 17 q 15 o
Decrypted Text is: hello
UML
EXPERIMENT-1
BANKING SYSTEM
37
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Description:
In a Banking System bank maintains different branches in different areas. In each branch the
customer can open account. It may be savings/checking account. The customer can make
transaction like deposit, withdraw or he can apply loan. Bank maintains branches information
and each branch maintains its customers and employees details.
Identified Actors:
1. Bank
2. Manager
3. Bank Database
4. Loans
5. Customer
38
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
39
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Class Diagram:
Class diagram in theUnified Modeling Language (UML) is a type of static structure
diagram that describes the structure of a system by showing the system's classes, their
attributes, operations (or methods), and the relationships among objects.
40
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
41
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim:
To work with sequence diagram for bank application.
42
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Collaboration Diagram:
In general Sequence and collaboration diagrams are Interaction models but with
different Representations.
43
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the activity diagram without swim-lane for bank
application.
44
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the activity diagram with swim-lane for bank application.
45
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
State Diagram: A state diagram, also called a state machine diagramor statechart diagram,
is an illustration of the states an object can attain as well as the transitions between those
states in the Unified Modeling Language (UML).
46
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
47
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
48
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
EXPERIMENT-2
ATM SYSTEM
49
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the use case diagram for atm system.
use case diagram: A use case diagram is a graphic depiction of the interactions among the
elements of a system.
A use case is a methodology used in system analysis to identify, clarify, and organize system
requirements
The actors, usually individuals involved with the systemdefined according to their roles.
Description:
If the PIN is validated satisfactorily, the customer is prompted for a withdrawal, query,
or transfer transaction .Before a withdrawal a transaction can be approved, the system,
determines that sufficient funds exist in the requested account, that the maximum daily limit
will not be exceeded, and that there are sufficient funds at the local cash dispenser. If the
transaction is approved the requested amount of cash is dispensed, a receipt is printed
containing information about the transaction, and the card is rejected..
50
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Identified Classes:
1. ATM
2. Customer
3. Administrator
4. Database
51
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Class Diagram:
Class diagram in theUnified Modeling Language (UML) is a type of static structure
diagram that describes the structure of a system by showing the system's classes, their
attributes, operations (or methods), and the relationships among objects.
52
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
53
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
54
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the activity diagram without swim-lane for atm system.
55
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the activity diagram with swim-lane for atm system.
56
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
State Diagram: A state diagram, also called a state machine diagramor statechart diagram,
is an illustration of the states an object can attain as well as the transitions between those
states in the Unified Modeling Language (UML).
57
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
58
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
59
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
EXPERIMENT-3
60
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with use case diagram for online auction system.
use case diagram: A use case diagram is a graphic depiction of the interactions among the
elements of a system.
A use case is a methodology used in system analysis to identify, clarify, and organize system
requirements
The actors, usually individuals involved with the systemdefined according to their roles.
Description:
Several commerce models exist and are the basis for a number of companies like eBay,
com, price line, com, etc., Design and implement an auction application that provides
auctioning services. It should clearly model the various auctioneers, the bidding process,
auctioning etc. Due to some circumstances some crop field is brought into the auction. The
auctioneers know about the auction and come to the specified location on the particular date.
Auction application should be designed and implemented. The application should include
various auctioneers, bidding process, auctioning etc. Banks are also involved in the auction
process for helping the organizations in the matter of transactions.
Identified Classes:
1. Customer
2. Vendor
3. Administrator
4. Products
61
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
62
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Class Diagram:
Class diagram in theUnified Modeling Language (UML) is a type of static structure
diagram that describes the structure of a system by showing the system's classes, their
attributes, operations (or methods), and the relationships among objects.
63
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the object diagram with for online auction system.
64
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the sequence diagram for online auction system.
65
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
66
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the activity diagram with swim-lane for online auction
system.
67
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the state chart diagram with for online auction system.
State Diagram: A state diagram, also called a state machine diagramor statechart diagram,
is an illustration of the states an object can attain as well as the transitions between those
states in the Unified Modeling Language (UML).
68
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the component diagram with for online auction system.
69
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the deployment diagram with for online auction system.
70
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
EXPERIMENT-4
71
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the use case diagram with for railway reservation system.
use case diagram: A use case diagram is a graphic depiction of the interactions among the
elements of a system.
A use case is a methodology used in system analysis to identify, clarify, and organize system
requirements
The actors, usually individuals involved with the systemdefined according to their roles.
72
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Description :
The Indian Railways (IR) carries about thousand of lakes passengers in reserved
accommodation every day. The Computerized Passenger Reservation System (PRS) facilities
the booking and cancellation of tickets from any of the approximately lakes of terminals (i.e.
PRS book-in window all over the countries). These tickets can be booked or cancelled for
journeys commencing in any part of India and ending in any other part, with travel time as long
as 72 hours and distance up to several thousand kilometers. The project of PRS was launched
on 15th November 1985, over Northern Railway with the installation of Integrated Multiple
Train Passenger Reservation System (IMPRESS), an online transaction processing system
developed by Indian Railways in association with Computer Maintenance Corporation Ltd., at
New Delhi. The objective was to provide reserved accommodations on any train from any
counter, preparation of train charts and accounting of the money collected.
METHODS:
ONLINE BOOKING:
With the help of this people can book their tickets online through internet, sitting in
their home by a single click of mouse. Using their credit cards people can easily get their tickets
done within minutes. There are certain charges for online booking as well.
COUNTER BOOKING:
This is the oldest method of booking the tickets. The reservation counters are there at
railway department from where people can get the tickets to their respective destinations.
73
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the class diagram for railway reservation system.
Class Diagram:
Class diagram in theUnified Modeling Language (UML) is a type of static structure
diagram that describes the structure of a system by showing the system's classes, their
attributes, operations (or methods), and the relationships among objects.
74
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the object diagram for railway reservation system.
75
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the sequence diagram for railway reservation system.
76
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the activity diagram without swim-lane for railway
reservation system.
77
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the activity diagram with swim-lane for railway
reservation system.
78
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the state chart diagram for railway reservation system.
State Diagram: A state diagram, also called a state machine diagramor statechart diagram,
is an illustration of the states an object can attain as well as the transitions between those
states in the Unified Modeling Language (UML).
79
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the component diagram for railway reservation system.
80
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the deployment diagram for railway reservation system.
81
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
EXPERIMENT-5
CRYPTOGRAPHY
82
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the use case diagram for sending secure file by using cryptography.
use case diagram: A use case diagram is a graphic depiction of the interactions among the
elements of a system.
A use case is a methodology used in system analysis to identify, clarify, and organize system
requirements
The actors, usually individuals involved with the systemdefined according to their roles.
Description:
As the Internet and other forms of electronic communication become more prevalent,
electronic security is becoming increasingly important. Cryptography is used to protect e- mail
messages, credit card information, and corporate data. One of the most popular cryptography
systems used on the Internet is Pretty Good Privacy because it's effective and free.
Cryptography systems can be broadly classified into symmetric-key systems that use a single
key that both the sender and recipient have, and public-key systems that use two keys, a public
key known to everyone and a private key that only the recipient of messages uses.
Identified Classes:
1. Sender
2. Receiver
83
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
84
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the class diagram for sending secure file by using cryptography.
Class Diagram:
Class diagram in theUnified Modeling Language (UML) is a type of static structure
diagram that describes the structure of a system by showing the system's classes, their
attributes, operations (or methods), and the relationships among objects.
85
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the object diagram for sending secure file by using cryptography.
86
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the sequence diagram for sending secure file by using cryptography.
87
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the activity diagram for sending secure file by using cryptography.
88
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the state chart diagram for sending secure file by using cryptography.
State Diagram: A state diagram, also called a state machine diagram or statechart diagram,
is an illustration of the states an object can attain as well as the transitions between those
states in the Unified Modeling Language (UML).
89
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the component diagram for sending secure file by using cryptography.
90
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the deployment diagram for sending secure file by using cryptography.
91
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
EXPERIMENT-6
LIBRARY SYSTEM
92
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the use case diagram for library system.
use case diagram: A use case diagram is a graphic depiction of the interactions among the
elements of a system.
A use case is a methodology used in system analysis to identify, clarify, and organize system
requirements
The actors, usually individuals involved with the systemdefined according to their roles.
Description:
A college library is filled with books, periodicals, journals and magazines. It also has
audio and video cassettes as well as CD ROM’s. The library leads its items to bonfire
members.
Identified Classes:
1. Librarian
2. Member
3. Student
4. Professor
5. Supplier
93
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
94
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Class Diagram:
Class diagram in theUnified Modeling Language (UML) is a type of static structure
diagram that describes the structure of a system by showing the system's classes, their
attributes, operations (or methods), and the relationships among objects.
95
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
96
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
97
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the activity diagram without swim-lane for library system.
98
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the activity diagram with swim-lane for library system.
99
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the state chart diagram for library system
State Diagram: A state diagram, also called a state machine diagramor statechart diagram,
is an illustration of the states an object can attain as well as the transitions between those
states in the Unified Modeling Language (UML).
100
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
101
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
102
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
EXPERIMENT-7
103
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the use case diagram for university management system.
use case diagram: A use case diagram is a graphic depiction of the interactions among the
elements of a system.
A use case is a methodology used in system analysis to identify, clarify, and organize system
requirements
The actors, usually individuals involved with the systemdefined according to their roles.
Description:
In a university registration system student login and view the set of colleges and select
the desired college .He joins that college and learns desired course by filling application.
College maintains several departments and each department has both teaching and non teaching
staff. The college conduct interview and conduct admissions, university maintains college’s
information.
Identified Classes:
1. University
2. Colleges
3. Student
4. Professor
104
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
105
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the class diagram for university management system.
Class Diagram:
Class diagram in theUnified Modeling Language (UML) is a type of static structure
diagram that describes the structure of a system by showing the system's classes, their
attributes, operations (or methods), and the relationships among objects.
106
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the object diagram for university management system.
107
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the sequence diagram for university management system.
108
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the activity diagram without swim-lane for university management system.
109
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the activity diagram with swim-lane for university management system.
110
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the state chart diagram for university management system.
State Diagram: A state diagram, also called a state machine diagramor statechart diagram,
is an illustration of the states an object can attain as well as the transitions between those
states in the Unified Modeling Language (UML).
111
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the component diagram for university management system.
112
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the deployment diagram for university management system.
113
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
EXPERIMENT-8
HOSPITALITY SYSTEM
114
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the use case diagram for hospitality system.
use case diagram: A use case diagram is a graphic depiction of the interactions among the
elements of a system.
A use case is a methodology used in system analysis to identify, clarify, and organize system
requirements
The actors, usually individuals involved with the systemdefined according to their roles.
Description:
This Hospital Inventory system manages patient info, staff info, stores and medicines,
billing and report generation. This complex application communicates with a backend
database server and manages all information related to Hospital logistics.
Contents
1. Patient
2. Doctor
3. Nurse
4. Receptionist
115
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
116
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Class Diagram:
Class diagram in theUnified Modeling Language (UML) is a type of static structure
diagram that describes the structure of a system by showing the system's classes, their
attributes, operations (or methods), and the relationships among objects.
117
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
118
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
119
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the activity diagram without swim-lane for hospitality system.
120
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the activity diagram with swim-lane for hospitality system.
121
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
Aim: To work with the state chart diagram for hospitality system.
State Diagram: A state diagram, also called a state machine diagramor statechart diagram,
is an illustration of the states an object can attain as well as the transitions between those
states in the Unified Modeling Language (UML).
122
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
123
NETWORK SECURITY, CRYPTOGRAPHY & UML LAB
124