Public-key cryptography uses two keys: a public key to encrypt messages and verify signatures, and a private key for decryption and signing. RSA is the most widely used public-key cryptosystem, using large prime factorization and exponentiation modulo n for encryption and decryption. While faster than brute-force, breaking RSA remains computationally infeasible with sufficiently large key sizes over 1024 bits.