Cryptography is the science of using mathematics to encrypt and decrypt information. Encryption translates information into something random and meaningless, while decryption converts the encrypted information back to its original form. A cryptographic algorithm is a mathematical function used for encryption and decryption that combines the information with a key. Symmetric algorithms use the same key to encrypt and decrypt, providing security and speed. Asymmetric algorithms use different public and private keys, allowing information to be encrypted with a public key and decrypted with a private key.