Encrypting and decrypting information with pycryptodome
In this section, we will review cryptographic algorithms and the pycryptodome
module for encrypting and decrypting data.
Introduction to cryptography
Cryptography can be defined as the practice of hiding information and includes techniques for message integrity checking, sender/receiver identity authentication, and digital signatures.
The following are the four most common types of cryptography algorithms:
- Hash functions: Also known as one-way encryption, a hash function outputs a fixed-length hash value for plaintext input and, in theory, it's impossible to recover the length or content of the plain text. One-way cryptographic functions are used in websites to store passwords in a way that they cannot be retrieved. Being designed to be a one-way function, the only way to get the input data from the hash code is by brute-force searching for possible inputs or by using a table of matching hashes.
- Keyed...