NIS Part AB Rinku
NIS Part AB Rinku
MICRO-PROJECT
ON
“ Hashing function”
Submitted :- 2022 – 23
Prof. K. U. Koche
(Lecture in Computer Department)
This is to certify that the following students of this Institute have carried
Out this micro-project work on “Hashing function” underthe guidance Of
Prof. K. U. Koche in the Diploma Engineering Duringthe session 2022-
2023. This work Has been done in the partial fulfillment Ofthe award for in
Computer Engineering from Maharashtra StateBoard of Technical
Education, Mumbai.
SUBMITTED BY
Sr. Name of
No. Resource/material Specifications Qty Remarks
Windows 10 , i5 , 4GB As per
1. Desktop PC RAM , 1TB Required
hard-disk
Chrome & MS Word As per
2. Software Required
Part – B Micro-Project Report
1.0 Rationale :
Hashing is the practice of transforming a given key or string of characters into
another value for the purpose of security. Although the terms “hashing”and
“encryption” may be used interchangeably, hashing is always used used for the
purposed of one-way encryption, and hashed values are very difficult to decode.
Encryption always offers a decryption key, whereas hashed information cannot be
decoded easily and is meant to be used as a method for validating the integrity of an
object or piece of data.
These functions take input data and produce a fixed-size string of bytes, which is
used to verify the integrity of the data. It's like a digital fingerprint for the data,
making sure it hasn't been tampered with. Hashing functions are widely used in
various security protocols to protect sensitive information.
2.0 Aim :
Hashing function
#include <iostream>
#include <vector>
#include <list>
class HashTable {
private:
vector<list<pair<int, string>>> table;
int size;
if (pair.first == key) {
cout << "Key already exists." << endl;
return;
}
}
table[index].push_back(make_pair(key, value));
}
hashTable.insert(1, "Alice");
hashTable.insert(2, "Bob");
hashTable.insert(11, "Charlie");
hashTable.remove(2);
cout << hashTable.search(2) << endl;
return 0;
}
Output :
8.0 Skill Developed / Learning outcome of this Micro-Project :