We talked about symmetric encryption, hashing and asymmetric encryption.
We talked about cryptographic hashes (MD5, SHA1, SHA256) and KDFs (Key Derivation Functions).
We visualized how KDFs make it way harder for attackers to derive passwords, even if the database is exfiltrated
We talked about how symmetric encryption works (e.g. AES) and how we can use Message Authentication Codes (MACs) to authenticate ciphertexts and avoid tampering by MiTMs.
We explained, once again, at length, public key crypto. We understood the difference between encrypting and signing.
We encrypt with the public key when we want the ciphertext to be decrypted by the holder of the private key.
We "encrypt" (sign) with private key when we want the "ciphertext" (signature) to be decrypted ("verified") by any holder of the public key.
# Generate a plaintext with random bytes
head -n 2 /dev/urandom | base64 > plaintext
# Generate an RSA private and publikey and pu
openssl genrsa -out priv_key.pem 2048
openssl rsa -pubout -in priv_key.pem -out pub_key.pem
# Get plaintext's hash
sha256sum plaintext | cut -d' ' -f1 > plaintext_hash
# Sign plaintext's hash
openssl rsautl -sign -inkey priv_key.pem -in plaintext_hash -out plaintext_hash_signed
We only need the plaintext, public key and the signature
# Verify plaintext's signature
openssl rsautl -verify -pubin -inkey pub_key.pem -in plaintext_hash_signed
# Check that the output from the above command is equal to:
sha256sum plaintext
Social Engineering, One Way Function, Rainbow table, Key Derivation Function, Bitflip, Tampering, CTF - Capture The Flag.
We rigorously explained how to solve the Python homework.
-
Watch Mr. Robot.
-
Practice with https://www.typingclub.com. Reach at least 55WPM.
-
Prepare a 2-3 mins talk!
-
If you haven't done so already - create a CV using these templates: https://docs.google.com/templates. Bring it to me for review.
-
Start sending your CV to companies! The Job search begins! :)
-
STUDY FOR TEST! - 24/03/2019 - study from lecture 11 (including) and from the "Defense and Offense" in the course's Google Drive
-
Do Google's Python's Class please try to reach till "Dict and Files".
Copyright 2019 Sagi Kedmi