Cryptography is a branch of mathematics that allows us to create mathematical proofs that provide a high level of security. Cryptography is also used in e-commerce and online banking. For Bitcoin, cryptography is used to ensure that no one can access the funds in another person's wallet or break the blockchain. Cryptography is also used to encrypt wallets so that they cannot be used without the password.