Lecture 5-Operating System Security-NPTEL
Lecture 5-Operating System Security-NPTEL
Stack
Heap
BSS
Data
Text
Heap
int main()
{
ptr = (int *) malloc(10*sizeof(int));
}
.bss
Int main()
{
static int a;
}
.data
int gb=10;
Int main()
{
}
qAn example
qConvert all the characters into their ASCII values and XOR them
qResult is a small number derived out of XOR operation
qStore the hash value in password file
qNote we do not store the password anywhere
qThe idea is make it impossible to guess the password even if hash value is known
qNow the password file looks like
qNeminath : a12hf
qGourinath : b4a2e
crypt3
Salt
User n 8940 79ih0
Where is the Hashed Password Stored
?
Username
Password
UID
GID
User info
Home
Shell
Username
Encrypted Password
Elapsed time
Validity
Due date
Warning date
Expiry date
Disabled time
IIT Indore © Neminah Hubballi Reserved
Where is Hashed Password Stored ?
qPassword has 3 components