Hey Guys!!....
The cryptography plays a major role in many day-to-day applications like Chat (Messaging) Apps, Password stored in database, Fetching the secure website i.e. HTTPS, etc. In many cases, we don't see the layer behind. It's actually cryptography used.
Now a days, we are seeing a lot of cryptocurrencies - Bitcoin, Ethereum, Litecoin, etc. In all these, the entire blockchain protocol (Mining algorithms) used is constructed using cryptography majorly. So, it's high time that we start learning this subject.
It is a technique of passing an input string (any size) into a "Hash Function" and generating a unique hash number (fixed length) out of it.
E.g. of hash function - MD5, SHA-1, SHA-2 (mostly used), etc.
While storing password in database - when user makes login attempt, the entered password is compared with the stored password (hash numbers compared in this case).
While entering the Credit card details, the last digits are compared with the stored credit card in the database.
A technique where an input is converted into an unreadable output of any length.
Here, the input is retrievable through decryption using key.
Types- Symmetric & Assymetric.
Symmetric - The keys for encryption and decryption.
Assymetric - 2 different keys. Public key for encryption and Private key for decryption.
It is used where any information is supposed to be retrieved by the receiver.
Hashing - non-retrievable input, used for storing and comparison.
Encryption - retrievable input, used where the input is to be read by the receiver e.g. Chat Apps.
That's all.
Thanks for reading....