Cryptography involves encrypting messages to make them secure and immune to attacks. There are traditional ciphers like substitution and transposition ciphers that encrypt text by shifting letters or rearranging them. Modern algorithms like DES use symmetric keys and RSA uses public/private key pairs to encrypt and decrypt messages. Public key cryptography uses different public and private keys, allowing secure communication without pre-sharing keys. Digital signatures authenticate messages using the sender's private key and can be verified by anyone using their public key.