RSA is an asymmetric cryptographic algorithm used for encrypting and decrypting messages. It uses a public key for encryption and a private key for decryption such that a message encrypted with the public key can only be decrypted with the corresponding private key. The RSA algorithm involves three steps: key generation, encryption, and decryption. It addresses issues of key distribution and digital signatures.