1/27
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Encryption keys
Encryption keys are used to encrypt and decrypt data. The key is a string of bits randomly generated using a specific cipher, such as Advanced Encryption Standard (AES). There are two types of encryption methods used with keys: symmetric and asymmetric. Symmetric encryption uses the same key to encrypt and decrypt data. Asymmetric encryption uses one key to encrypt the data and a different key to decrypt the data. These keys are known as a public key and private key.
Hashing
Hashing is the process of converting one value into another using a mathematical algorithm like MD5 or SHA. This fixed length of data is called the hash. Hashing is used on data that does not need to be decrypted, such as passwords. When a piece of data is run through a hashing algorithm, it always generates the same hash; if even one letter is altered, the resulting hash is different, which is why hashing can verify data hasn't been altered during transmission. A hash cannot be decrypted, though attackers can compare a captured hash against massive precomputed password-hash databases to quickly recover the original password.
Salt
Salt, or salting the hash, means that a random number of characters are added to the password before the hash is created. For example, if the password to be hashed was p@ssw0rd, a salt such as E1343135E119C253 may be added, so the string actually hashed would be p@ssw0rdE1343135E119C253. Since the salt is randomly generated each time, it's virtually impossible to build a database containing all possible salted passwords, even for the same password.
Digital signatures
By combining a user's private encryption key and a hash of the data, a user can create a digital signature. A digital signature verifies that the data is legitimate and provides non-repudiation, meaning the sender cannot deny having sent the file.
Elliptic Curve Cryptography (ECC)
One of the newer cryptography methods being implemented. ECC can generate smaller keys that are more secure than most other methods. Many websites today use ECC to secure connections and data transmissions.
Perfect Forward Secrecy
A cryptography method used often in messaging apps. Instead of the same key being used for an entire conversation or session on a website, each transmission is encrypted with a different unique key.
Steganography
The technique of hiding or concealing a file, message, image, or video within another file, message, image, or video. Special programs are often used to hide messages in media files — if a hacker intercepts the message, all they see is the media, with no indication a hidden message exists.
Dictionary
A dictionary attack is a type of brute-force attack. The hacker uses a list of words and phrases to try to guess the decryption key.
Dictionary attacks work well if weak passwords are used.
Using longer and uncommon passphrases is the best way to secure data against these attacks.
Collision attack
A collision attack tries to find two inputs that produce the same hash value. This type of attack is often used on digital signatures.
If a hacker wanted to get User2 to sign a document by making it seem like it came from User1, they would generate two documents that generate the same hash.
The hacker would send one document to User1 and get that signature.
The signature would be attached to the second document and sent to User2. Because the hashes are identical, User2 thinks the document is legitimate and has been signed by User1.
Generating longer hash outputs is the key to stopping these types of attacks.
Birthday attack
This attack combines a collision attack and a brute-force attack. The name is taken from the birthday probability math problem.
The birthday probability math problem states that if you have 30 people in a room, the probability that someone has the same birthday as you is approximately 8%. However, the probability that any two people in the room have the same birthday is 70%. This is because we are not looking for an exact match (just any match), so the probability is higher. Digital signatures can be susceptible to birthday attacks.
Generating longer hash outputs is the key to stopping these attacks.
Downgrade attack
A downgrade attack forces the system to use an older, less secure communication protocol.
SSL exploitation is a common implementation of this attack. A hacker can set up their computer to only use SSL so that when the request is sent to the server, the server downgrades from TLS to SSL to communicate. This then allows the hacker to launch SSL-based attacks on the server.
Downgrade attacks are often used as part of a man-in-the-middle (MITM) attack. The hacker can intercept an HTTPS packet and downgrade it to an HTTP packet. If the server is not configured properly, the server responds using HTTP. This allows the hacker to now see all communications.
To prevent downgrade attacks, servers must be set up not to support these older and less secure protocols. Proper server configuration is the key to stopping these types of attacks.