Understanding the Need for and Uses of Cryptography
September 9, 2024
Key Questions: What are the trade-offs between different types of keys? Ways to balance security, privacy, and performance? How?
Key Insight: Cryptographic algorithms underpin many of the applications that we use on a daily basis! Let’s try to program them for better understanding! Start by revisiting basics from last week!
cryptography.fernet
to encrypt a string and record
encrypt_string
encrypted_data
byte-encoded stringkey
as a byte-encoded stringFernet
key look like?Fernet
key?Fernet
key does not match?b
prefix?key
’s contents?ciphertext_input_asym
!ciphertext
must have the correct length and formatrsa
private key look like?key_size
affect the rsa
algorithm?padding.PKCS1v15()
?rsa
keys incorrectly?Security Synapse