A cipher is an algorithm used to perform encryption and decryption of data. It transforms readable information (plaintext) into an unreadable format (ciphertext) and vice versa, using a specific key. Ciphers are fundamental to cryptography and underpin the security of blockchain networks, wallet protection, and secure communication.