Cryptography is the practice of secure communication using codes. In blockchain, it underpins the security of transactions, ensuring that only the owner of a private key can authorize transfers.