In cryptography, information is encrypted and decrypted using mathematical algorithms and secret keys. The sender uses a specific encryption algorithm and a secret key to transform plaintext data into an unreadable form called ciphertext. The receiver then uses the same or a corresponding secret key and a decryption algorithm to convert the ciphertext back to its original plaintext form.