Cryptography and Code Obfuscation
In addition to being one of the most used languages in computer security, Python is also well known for supporting cryptography. The main objective of this chapter is to present the most important algorithms for encrypting and decrypting information, covering cryptographic functions and their implementations in Python.
Although a short introduction to cryptographic algorithms is given in this chapter, we will assume the reader has a minimum knowledge of cryptography. If you wish to learn more, you can make use of other resources, such as https://www.crypto101.io.
This chapter covers the main modules we have in Python for encrypting and decrypting information, including pycryptodome
and cryptography
. Also, we will cover Python modules that generate keys securely with the secrets
and hashlib
modules. Finally, we will cover Python tools for code obfuscation.
You will acquire skills related to encrypting and decrypting information with Python...