RSA is a popular public key cryptography algorithm invented by Rivest, Shamir, and Adleman in 1978. It uses two large prime numbers to generate a public and private key pair. The public key is used to encrypt messages, and the private key is used to decrypt them. RSA works by converting the plaintext into numbers, encrypting it using modular arithmetic and the public key, then decrypting the ciphertext with the private key. It relies on the difficulty of factoring large numbers.