Cryptography
Cryptography is the practice of developing and using coded algorithms to protect and obscure transmitted information so that it may only be read by those with the permission and ability to decrypt it. Put differently, cryptography obscures communications so that unauthorized parties are unable to access them.
Source IBM
Basic Principle of Cryptography

Source : wallarm
Cryptography can be categorized in to two major categories:
- Encryption and Decryption
- Symmetric Key Structure
- Asymmetric Key structure
- Digital Signature
Symmetric and Asymmetric Encryption


Source : Link
Digital Signature

source : link

Source : link
Often beginners will confuse the usage of public and private key when they are first learning cryptography.
In Asymmetric Encryption Algorithm:
- Public Key : Used to encrypt the Text
- Private Key : Used to decrypt the Cipher
In Asymmetric Signature Algorithms:
- Public Key : Used to decrypt the Hash (verification)
- Private Key : Used to encrypt the Hash (signing)
Same... Same.... But Different.....