2026-07-26 15:27
Status:
Tags: Encryption Hacking Cybersecurity Security Algorithms Security IT Google IT Certificate - Technical Support & Fundamentals Coursera Learning IT Security - Defense Against The Digital Dark Arts Hashing Cryptography Ciphers VPN
ISDADDA - Module 2 - Pelcgbybtl (Cryptology)
==Symmetric Encryption
-
Cryptography:
-
Basically, the idea of encoding information to make it not as simple to understand or read by an outside party
-
This module will also cover things like the different types of algorithms used for cryptography, like symmetric, asymmetric, and things like hashing
-
Also how to choose the best option for your application
-
Cryptography- hiding messages from potential enemies, has been around for thousands of years, the overarching discipline that covers the practice of coding and hiding messages from third parties
-
Cryptanalysis- the process of trying to decode the encrypted messages that are made using cryptography
-
Encryption- the act of taking a message, called plaintext, and applying an operation to it, called a cipher, so that you receive a garbled, unreadable text message as the output, called ciphertext
-
The verse process, taking that garbled text, and making it readable is called decryption
-
Encryption Algorithm- the underlying logic of process that’s used to convert the plaintext into cipher-text, usually very complex mathematical operations, but there are more simpler ones for examples
-
Key- something unique to your cipher, basically some added in salt that makes it impossible for someone who knows what algorithm you might have used to encrypt your data to decrypt it without said key
-
Security Through Obscurity- basically whenever you keep something secure by not exposing the method that you used to secure it, so nobody can reverse engineer the way for you to encrypt your data
-
Cryptosystem & Kirchhoff’s Principle- a collection of algorithms for key generation and encryption and decryption operations that comprise a cryptographic service should remain secure, even if everything about the system is known, except for the key of course
-
Frequency analysis- a type of cryptanalysis that studies the frequencies with which letters appear in a ciphertext as a means to try and decode it
-
Basically, the main thought is that some letters appear more frequently than others, like vowels for example, and so seeing the same symbol so many times often leads you to think it might be one of those
-
Stenography- the practice of hiding information from observers, but not encoding it
-
-
Supplemental Reading for the Future of Cryptanalysis:
- Known-Plaintext Analysis (KPA)- Requires access to some or all of the plaintext of the encrypted information. The basic way is to try and decode the process by examining the way that the encryption algorithm changed the text, and reverse engineering the process
- Chosen-Plaintext Analysis (CPA)- requires that the attacker knows the encryption algorithm. The analyst can encrypt one block of their own chosen plain text with that algorithm, and then compare it to the regular text to try and get access to the key
- Ciphertext-Only Analysis (COA)- requires access to one or more encrypted messages. No information is needed about the plaintext data, or the key. It is very hard to try and decrypt this way.
- Adaptive Chosen-Plaintext Attack (ACPA)- is similar to chosen-plaintext attack. Unlike a CPA, it can use smaller lines of plaintext to receive it’s encrypted ciphertext and then crack the encryption code using the ciphertext
- Meddler-in-the-Middle (MITM)- uses cryptanalysis to insert a meddler between two communication devices or applications to exchange their keys for secure communication. It tries to reply as a user, and then performs a key exchange with each party.
-
Symmetric Cryptography:
-
Symmetric key algorithm- these types of encryption algorithms are called symmetric because they use the same key to encrypt and decrypt messages. There is not one key for encryption, and one for decryption, instead a single key is used for both
-
Substitution Cipher- an encryption mechanism that replaces parts of your plaintext with ciphertext
-
-
ROT 13- a sort of substitution cipher where the alphabet is rotated 13 places
-
It is a fairly basic type of substitution cipher, basically a Caesar cipher with a key of 13 if you think about it, since a Caesar cipher is just whenever a cipher rotates letters
-
Since the alphabet is 26 characters, a key of 13 means that the ROT 13 cipher is an inverse of itself, meaning you can decode the ROT 13 cipher with basically another performance of a ROT 13 cipher
-
This is basically an example of a symmetric encryption
-
There are also two other categories for symmetric ciphers block ciphers & stream ciphers
-
Stream cipher- takes a stream of input and encrypts the stream on character or one digit at a time, outputting one encrypted character or digit at a time, the above cipher is basically similar to the one above. There is a one to one ratio of data in and data out
-
Block Cipher- The cipher takes data in, places it into a bucket or block of data that is a fixed size, then encodes that entire block as one unit
-
Stream ciphers are faster, and less complicated to implement than a block cipher, but because of that reason, they are also less safe than block ciphers
-
-
Symmetric Encryption Algorithms
-
Data Encryption Standard (DES)- designed in the 1970 s by IBM, with some input from the US National Security Agency
-
It was adopted as an official FIPS (Federal Information Processing Standard
-
DES is a symmetric block cipher that uses 64-bit key sizes and operates on blocks 64-bits in size
-
Though the key size is technically 64-bits in length, 8 of those bits are used only for parity checking, which is a simple form of error checking
-
Meaning the real world key length for DES is only 56 bits
-
Inside of symmetric encryption algorithms, the same key is used to encrypt as to decrypt, everything else being the same, so the key is the only real thing that is protecting your data, and it is the thing that you need to keep secret to keep your data safe
-
The size of a key is basically the upper limit of that key’s possible security, for example would be the strength of the above mentioned key, with all the different combinations for it
-
Key length is super important in cryptography since it essentially defines the maximum potential strength of the system
-
Eventually though, the became a bit too small, when an american company decrypted a DES message in only 56 hours using basically brute force to get the right key
-
Therefore, a bunch of newer algorithms came out, many of them kept the same 64-bit block size, but used a much larger key size, leading to a company called NIST to develop AES (Advanced Encryption Standard), it is also the first only only cipher that is approved with top secret information by the United States/
-
It uses 128-bit blocks, which are twice the size of DES, and supports key length of 128-bit, 192-bit, and 256-bit
-
Therefore, due to the large key size, brute force attacks on AES are only theoretical right now because the hardware we have is not good enough
-
These algorithms are just the base standard, they still need to actually be implemented inside of your software or hardware implementations, so it is important to keep in mind the speed and ease of implementation for the algorithm you use
-
Some algorithms would require the encryption to be ran multiple times on the same data, and therefore, need to be fast. This is also why modern intel or AMD CPUs have AES instructions baked into them, to take the burden off the software need
-
RC 4 (Rivest Cipher 4)- a symmetric stream cipher that gained widespread adoption because of it’s simplicity and speed, however nowadays it is not as recommended to be used due to a lack of security
-
It supports key sizes between 40-bits and 2048-bits. So brute force is not the issue. Instead, the issue is on the cipher itself, basically logic-ing it’s way and figuring out the cipher. It was also used inside of things like
.webpfiles and.wpafiles. Also used inside of TLS for a second, but it was dropped in 2015 for the aforementioned lack of security, nowadays, TLS uses AES-GCM which is a configuration of the AES cipher that turns it into a stream cipher
-
-
Supplemental Reading For Symmetric Encryptions:
- For more information about symmetric encryptions, check out the following link here
==Public Key or Asymmetric Encryption
-
Asymmetric Cryptography
-
Asymmetric or public key ciphers
-
Basically, these are different from the symmetric encryption systems because they use different keys to encrypt and decrypt
-
-
Basically, the way that this works, is that two parties who want to safely share data create two different private keys. Then, using those two private keys, a third key is derived
-
The security of the system is basically derived from how difficult it is to try and figure out the private key given out the garbled up public key
-
-
Once both parties have generated a private and a public key, then they basically swap over their public keys. This means that the other party can use their own private key to figure out the private key of the other person. Now having both the public key, their own private key, and the other persons private key as well
-
So basically, if they now ant to send data over to each other, they use the public key they got from the other person to encrypt the data, and then the receiving person is able to decrypt it using their own private key
-
Due to the nature of this, only a person’s own private key can be used to decrypt messages, so even if they got the other person’s private key, if they don’t have the public key from them, they can’t decrypt shit
-
There is another advantage to this kind of encryption, you are able to attach over your private key to your given message, and therefore the person who will be receiving that message with your key compiled into it, will know that the message came from you
-
-
Asymmetric vs. Symmetric Cryptography:
-
Asymmetric Encryption allows for secure communication over an unsafe channel
-
Symmetric Encryption on the other hand, requires some sort of secure method of sharing the key you made with someone from another party
-
So, while asymmetric encryption is much safer in untrusted environments, it is also a LOT more computationally expensive to perform. This is unlike symmetric, which can be a lot safer and easier to implement for large amounts of data
-
What many secure communicate schemes due is take advantage of the benefits of both communication types, by using both for different purposes
-
Basically the symmetric encryption key is sent over via asymmetric encryption
-
This is basically genius because it lets you safely share the key and still have the same benefit of speed and ease of use that you get from Symmetric encryption
-
MAC (Message Authentication Codes)- not MAC as in Media Access Control addresses, it is basically a bit of information that allows authentication of a received message, ensuring that the message came from the alleged sender and not a third party masquerading as them. Helps to prevent against meddler-in-the-middle attacks
-
It also basically helps to ensure data integrity, very similar to the private key appendage of asymmetric encryption
-
HMAC- keyed-hash message authentication code, it uses a cryptographic hash function, along with a secret key to generate a MAC. Basically, extra safety for the MAC.
-
the HMAC or MAC is sent alongside the message, being verified by the receiver by performing the same operation on the given message, and if the two outputs are the same, then the message is good
-
There is also CMACs or Cipher-Based Message Authentication Codes, it is very similar to HMAC, basically a cipher is used to encrypt the message instead of a hash function
-
-
Asymmetric Encryption Algorithms:
-
RSA- from RSA security was the first to come out with an asymmetric form of encryption algorithm. It specifies mechanisms for generation and distribution of keys, alongside the actual encryption and decryption operations using these keys.
-
It is basically very high level math that made the algorithm work.
-
It is important to know however that the key generation process depends on two usually VERY large prime numbers
-
There is also a government type thing that is similar to this, but it chooses a random seed to also basically incorporate into the process. If the value is leaked, or if it can be inferred and the prime number is not random, then the attacker can recover the key
-
This happened to sony with the PlayStation 3, and basically allowed a bunch of people to pirate a good amount of their games
-
-
Another popular key-exchange algorithm that people use instead of just using asymmetric encryption, is called DH or (Deify Helmann)- named for the co inventors
-
It works by having a starting number that is random, and very large in size. It needs to be different for every session and does not need to be secret. Next, the parties chose another, non-shared, randomized large number, but this one is kept secret. Then, they combine their secret number with the agreed upon number, and exchange this to each other. Then, adding in their own secret value to the previously combined one they received. (This just sounds the same as asymmetric encryption)
-
-
Elliptic curve cryptography (ECC)- is a public-key encryption system that uses the algebraic structure of elliptic curves over finite fields to generate secure keys
-
Traditional key systems that make these keys use very large prime numbers to make / use as their keys. However, this uses elliptic curves which consist of a set of coordinates that fit an equation
-
The thing with elliptic curves though, is that they have horizontal symmetry, meaning that each point can be mirrored along the x axis
-
On top of this, any straight line will intersect the curve in 3 places at most, which is the property that allows for this to be used in encryption
-
The reason people use these is because they can achieve similar security to the prime number key systems, with smaller key sizes, so a 256-bit curve key is then equivalent to a 3072 bit RSA key. Basically, these are pretty goated
-
==Hashing
-
Hashing:
-
-
Hashing (or a hash function)- is a type of function or operation that takes in an arbitrary data input and maps it to an output of fixed size, called a hash, or digest
-
The output size if soften specified in bits of data, and if often included in the hashing function’s name
-
You feed in any amount of data into a hash function, and the resulting output will always be the same size, but the output should be unique to the input, such that two different inputs should never yield the same output
-
Hashing can be used as a data structure in software engineering, it can be used to identify duplicate data sets in databases or archives to speed up searching of tables or to remove duplicate data to save space
-
This course is primarily concerned with cryptographic hash functions which are used for things like authentication, data integrity, authentication, and other such times
-
The main way a cryptographic hash function differs from another hash function is that they are one directional. Meaning, that you cannot input the hash into the hash function to get the actual value back
-
The Ideal Hash Function should be Deterministic meaning that the same input value always returns the same hash-value
-
The function should also not allow for hash collisions, meaning that two different mapping to the same output
-
Many popular hash functions are actually based on block ciphers
-
-
This could be an example of how a hash function works, you input the plaintext and then you get out some unreadable form of output. The output should only ever have occurred for that input, and it should always come from that input. It also cannot be used to somehow reverse the process and get back the original plaintext. Modifying the input should change the output greatly as well
-
-
Hashing Algorithms:
-
MD 5- a popular and widely used hash function designed in the 1992 as a cryptographic hashing function, it operates on 512-bit blocks, and generates 128 bit hash digests
-
Generally though, an issue was found with it in the year 1996, and so people started recommending something called the SHA-1 hash, a more secure alternative.
-
However, this issue was not critical, and so MD 5 still sees use
-
However, in 2005, it was found that MD 5 was susceptible to hash collisions, meaning bad actors could replicate the data via originally wrong plaintext to trick someone
-
In 2008 though, security researchers found a way to create a fake SSL certificate that validated due to an MD 5 hash collision
-
These very serious vulnerabilities caused for the method of encryption to stop being recommended to be used in 2010
-
In 2012, these exploits were used to attack microsoft services in the use of a malware attack that provided false credentials to get access to important information
-
This caused for people to recommend SHA-1 which is a part of the Secure Hash Algorithm suite of functions, designed by the NSA, published in 1995
-
It operates on 512-bit blocks, and generates 160 bit hash digests
-
It is a popular form of cryptographic encryption used in things like TLS/SSL PGP SSH, and IPsec
-
Also used in version control systems like Git which uses hashes to identify data integrity and see changes
-
Generally, SHA-1 has it’s share of weakness and vulnerabilities, and so people recommend the use of SHA-2, or SHA-3 instead
-
Very strong computing power and testing of SHA-1 basically showed that partial collisions are possible, and full collisions are possible as well, but they are very very hard and expensive to pull off in today’s computing power age
-
In early 2017, the first full collision of SHA-1 was published, using cpu and gpu resources, two unique PDFs were made that result in the same hash
-
-
Hashing Algorithms (continued):
-
Basically, hashes can be used for authentication, they are a good way to store passwords of someone, so when they type in the password, you can hash it, and see if the hash exists on file. If not, then they cannot be authenticated. And if anyone gets the file with the hashes, they cannot unhash them to know the passwords
-
If someone did get these hashes, and wants to know the password information for them, the only thing they can do, if all they have is the hashes, is try to brute force the hashing algorithm to produce the same hash, it can be very slow
-
Any sort of security system can be brute forced, so the goal is to make the time and resources it takes to brute force something either not really feasible or not worth it
-
You can also rehash the function multiple times
-
-
Rainbow tables are used by hackers to help speed up the process of recovering passwords from recovered password hashes
-
It is basically just a table of a bunch of pre computed passwords and their hash values, allowing for easier, less computationally intensive look up
-
It is possible to download these rainbow tables off the internet for popular hashes and popular password lists as well
-
-
How do you protect against this? Salts
-
Password Salt- additional randomized data that’s added into the hashing function to generate a hash that’s unique to the password and salt combination
-
A random set of string characters is added onto the end of the password, the combination of salt and password is then ran through the function to generate a hash
-
The salt is public and can be known, but it helps to protect against things like rainbow tables because it means that people will have to compute the different hashes instead of relying on a rainbow table
-
==Cryptography Application
-
Public Key Infrastructure:
-
PIK (Public Key Infrastructure)- it is a critical piece in safety on the internet
-
PKI is a system that defines the creation, storage, and distribution of digital certificates
-
A digital certificate is a file that proves that an entity owns a certain public key
-
It contains info on the public key, registration from the owner, and a digital signature from another party verifying the info
-
This is basically the reason why HTTPS needs to have a verified certificate in order to work, it is so that this key can be used
-
The person that is in charge of signing and distributing these certificates is known as a CA or Certificate Authority
-
There is also an RA, or Registration Authority that is responsible for verifying the identities of any entities requesting certificates to be signed and stored with the CA, generally this role is lumped together with the CA
-
A central repository is needed to securely store and index keys, and a certificate management system of some sort makes managing access to stored certificates and issuance of certificates easier.
-
There are a bunch of different certificates for a bunch of different services, for example as I even earlier mentioned, the SSL/TLS server certificates
-
It is the certificate that an https server shows to a client as a part of a https set up
-
The client will check the certificate at the given central certificate repository to make sure that it is legitimate
-
It is also possible for a certificate to be valid for multiple host names
-
There may also be wildcard certificates, which use an
*as a means to denote trust for all given subdomains within a given domain. -
There may also be a self-signed certificate, which as it suggests, is a certificate that was signed by the server hosting it, which is basically signing a public key with your private key, which would fail to verify is the private key is unknown
-
Generally this is a bunch of building trust between the client and the host, and this starts with something called the root certificate authority, which are self sign. This root certificate authority can then start signing other certificates and issuing public keys and what not
-
It creates a tree structure, if the root certificate creates another certificate and signs a part of it called CA, then it can be considered an intermediate CA, and can sign it’s own certificates. Basically, it becomes a big old route. However, certificates without a CA authority cannot make other certificates, and are known end-entities or a leaf certificate
-
How does a root CA trust work? They are generally distributed via given channels to proper authorities. If you do not trust a single root certificate, than the entire tree is untrusted by you
-
-
Certificates:
-
The
X.509standard is what defines the format of digital certificates -
It defines a CRL or Certificate Reification List, which is a means of distributing certificates that are no longer considered valid
-
The fields defined in an
X.509certificate are:- Version- what version of the
X.509standard the certificate adheres to - Serial Number- a unique identifier for the certificate assigned by the CA which allows the CA to manage and identify individual certificates
- Certificate Signature Algorithm- a field that indicates what public key algorithm is used for the public key and what hashing algorithm is used to sign the certificate
- Issuer Name- contains the information about the authority that signed the certificate
- Validity- contains two subfields, a “Not Before” and “Not After” which defines the time frame when the certificate is valid
- Subject- contains identifying information about the entity the certificate was issued to
- Subject Public Key Info- these two subfields define the algorithm of the public key, along with the public key itself
- Certificate Signature Algorithm- same as the subject public info field, these two fields must match
- Certificate Signature Value- the digital signature data itself
- Version- what version of the
-
There is also something called the web of trust where individuals sign other individual’s public keys, basically agreeing that they are who they say they are
-
People interested in this will perform “key-signing parties”, where a bunch of individuals gather to basically all make this web of trust
-
-
Supplemental reading for the X.509 standard:
- For more information about this topic from this Video Lecture, check out the following link. The X. 5029 standard is what defines the format of digital certificates.
-
Cryptography in Action:
-
TLS Grants Us THREE things:
- A secure communication line, which means data being transmitted is protected from potential eavesdroppers
- The ability to authenticate both parties communicating, though typically only the server is authenticated by the client
- The integrity of communications, meaning there are checks to ensure that messages aren’t lost or altered in transit
-
-
It provides a secure channel for a client to communicate with a service
-
There however needs to be a process where this channel is established, known as a TLS handshake
-
Basically done after a TCP connection occurs, and is displayed above
-
The session key is the shared symmetric encryption key used in TLS sessions to encrypt data being sent back and forth
-
It is derived from the public key, which is derived from the private key. And so if the private key is compromised, this one might be as well
-
To fix this there is:
-
Forward Secrecy- this is a property of a cryptographic system so that even in the event that the private key is compromised, the session keys are still safe
-
Secure Shell (SSH)- a secure network protocol that uses encryption to allow access to a network service over unsecured networks
-
Pretty Good Privacy (PGP)- an encryption application that allows authentication of data, along with privacy from third parties, relying upon asymmetric encryption to achieve this
-
Most commonly used for email encryption, but is more flexible to be used outside of just email as well
-
-
Securing Network Traffic:
-
If you do not have access to encryption or the data has to travel very long distances, use a VPN
-
Virtual Private Network- a mechanism that allows you to remotely connect a host or network to an internal private network, passing the data over a public channel, like the internet
-
Two networks can be connected together via two end points via an encrypted tunnel, or a single device can be connected as well
-
-
Ipsec- internet protocol security, is a VPN protocol that was designed in conjunction with IPv6
-
It is optional for use with IPv 6, and the way it words is show above
-
It supports two modes of operation Transport mode & Tunnel Mode
-
When transport mode is used, only the payload of the IP packet is encrypted, leaving the IP headers untouched
-
However, tunnel mode probably encrypts the whole thing I would assume, it is encapsulated inside a new packet with a new IP header and other such fillings
-
The tunnel is provided by L2TP which permits the passing of unmodified packets from one network to another
-
The secure channel is provided by IPsec, which provides confidentiality, integrity, and authentication of data being passed
-
OpenVPN does not do this, and instead uses a form of SSL/TLS to handle the encryption of data across a tunnel
-
OpenVPN can operate over either TCP or UDP, typically over port 1194
-
-
Supplemental Reading for Securing Network Traffic:
-
The combination of L2TP and IPsec is referred to as L2TP/IPsec and was officially standardized in IETF RFC 3193.
-
An example of this is OpenVPN, which uses the OpenSSL library to handle key exchange and encryption of data along with control channels.
-
-
Cryptographic Hardware:
-
Trusted Platform Module (TPM)- it is a hardware device that is a dedicated crypto processor, and basically allows for secure generation of keys, random number generation, remote attestation, data binding and sealing
-
A TPM has a unique secret RSA key burned into the hardware at the time of manufacture, which allows a TPM to perform things like hardware authentication
-
This can detect unauthorized hardware changes to a system
-
Remote Attestation is the idea of a system authenticating it’s software and hardware configuration to a remote system, allowing for that remote system to determine the integrity of the remote system
-
Data binding and sealing involves using the secret key to derive a unique key that’s then used for encryption of data
-
Data sealing is similar to binding since data is encrypted using the hardware backed encryption key
-
However, for the data to be decrypted, the TPM must be in a specific state, TPM is a standard with several revisions and different specifications
-
Mobile devices have something similar refered to as a secure element
-
It is a tamper resistant chip often embedded in the microprocessor or integrated into the main-board of the mobile device
-
Trusted Execution environment (TEE)- which provides full blown isolation execution in an environment that runs alongside the main OS, providing isolation of the applications from the main OS and other applications installed there
-
-
Supplemental Reading for TPM Attacks:
- There’s been one report of a physical attack on a TPM which allowed a security researcher to view and access the entire contents of a TPM.
==Glossary
Advanced Encryption Standard (AES): The first and only public cipher that’s approved for use with top secret information by the United States National Security Agency
Asymmetric encryption: Systems where different keys are used to encrypt and decrypt
Authentication: A crucial application for cryptographic hash functions
Block ciphers: The cipher takes data in, places that into a bucket or block of data that’s a fixed size, then encodes that entire block as one unit
CA (Certificate authority): It’s the entity that’s responsible for storing, issuing, and signing certificates. It’s a crucial component of the PKI system
Caesar cipher: A substitution alphabet, where you replace characters in the alphabet with others usually by shifting or rotating the alphabet, a set of numbers or characters
CBC-MAC (Cipher block chaining message authentication codes): A mechanism for building MACs using block ciphers
Central repository: It is needed to securely store and index keys and a certificate management system of some sort makes managing access to storage certificates and issuance of certificates easier
Certificate fingerprints: These are just hash digests of the whole certificate, and aren’t actually fields in the certificate itself, but are computed by clients when validating or inspecting certificates
Certificate Revocation List (CRL): A means to distribute a list of certificates that are no longer valid
Certificate Signature Algorithm: This field indicates what public key algorithm is used for the public key and what hashing algorithm is used to sign the certificate
Certificate-based authentication: It is the most secure option, but it requires more support and management overhead since every client must have a certificate
Certificate Signature Value: The digital signature data itself
CMACs (Cipher-based Message Authentication Codes): The process is similar to HMAC, but instead of using a hashing function to produce a digest, a symmetric cipher with a shared keys used to encrypt the message and the resulting output is used as the MAC
Code signing certificates: It is used for signing executable programs and allows users of these signed applications to verify the signatures and ensure that the application was not tampered with
Cryptanalysis: Looking for hidden messages or trying to decipher coded message
Cryptography: The overarching discipline that covers the practice of coding and hiding messages from third parties
Cryptology: The study of cryptography
Cryptosystem: A collection of algorithms for key generation and encryption and decryption operations that comprise a cryptographic service
Cryptographic hashing: It is distinctly different from encryption because cryptographic hash functions should be one directional
Data binding and sealing: It involves using the secret key to derive a unique key that’s then used for encryption of data
Decryption: The reverse process from encryption; taking the garbled output and transforming it back into the readable plain text
DES (Data Encryption Standard): One of the earliest encryption standards
Deterministic: It means that the same input value should always return the same hash value
DH (Diffie-Hellman): A popular key exchange algorithm, named for its co-inventors
DSA (Digital Signature Algorithm): It is another example of an asymmetric encryption system, though its used for signing and verifying data
ECDH & ECDSA: Elliptic curve variants of Diffie-Hellman and DSA, respectively
Eliptic curve cryptography (ECC): A public key encryption system that uses the algebraic structure of elliptic curves over finite fields to generate secure keys
Encapsulating security payload: It’s a part of the IPsec suite of protocols, which encapsulates IP packets, providing confidentiality, integrity, and authentication of the packets
Encryption: The act of taking a message (plaintext), and applying an operation to it (cipher), so that you receive a garbled, unreadable message as the output (ciphertext)
Encryption algorithm: The underlying logic or process that’s used to convert the plaintext into ciphertext
End-entity (leaf certificate): A certificate that has no authority as a CA
Entropy pool: A source of random data to help seed random number generators
FIPS (Federal Information Processing Standard): The DES that was adopted as a federal standard for encrypting and securing government data
Forward secrecy: This is a property of a cryptographic system so that even in the event that the private key is compromised, the session keys are still safe
Frequency analysis: The practice of studying the frequency with which letters appear in ciphertext
Full disk encryption (FDE): It is the practice of encrypting the entire drive in the system
Hash collisions: Two different inputs mapping to the same output
Hashing (Hash function): A type of function or operation that takes in an arbitrary data input and maps it to an output of a fixed size, called a hash or a digest
HMAC (Keyed-Hash Message Authentication Codes): It uses a cryptographic hash function along with a secret key to generate a MAC
HTTPS: Hypertext Transfer Protocol Secure is a secure version of HTTP that ensures the communication your web browser has with the website is secured through encryption
Intermediary (subordinate) CA: It means that the entity that this certificate was issued to can now sign other certificates
IPsec (Internet Protocol security): A VPN protocol that was designed in conjunction with IPv6
Issuer Name: This field contains information about the authority that signed the certificate
Kerckhoff’s principle: A principle that states that a cryptosystem, or a collection of algorithms for key generation and encryption and decryption operations that comprise a cryptographic service should remain secure, even if everything about the system is known except for the key
Key: A crucial component of a cipher, which introduces something unique into your cipher
Key length: It defines the maximum potential strength of the system
Key signing parties: Organized by people who are interested in establishing a web of trust, and participants perform the same verification and signing
Key size: It is the total number of bits or data that comprises the encryption key
L2TP (Layer 2 Tunneling Protocol): It is typically used to support VPNs
MACs (Message Authentication Codes): A bit of information that allows authentication of a received message, ensuring that the message came from the alleged sender and not a third party masquerading as them
MD5: A popular and widely used hash function designed in the early 1990s as a cryptographic hashing function
MIC (Message Integrity Check): It is essentially a hash digest of the message in question
NIST: National Institute of Standards and Technology
Password salt: Additional randomized data that’s added into the hashing function to generate the hash that’s unique to the password and salt combination
PGP (Pretty Good Privacy) encryption: An encryption application that allows authentication of data along with privacy from third parties relying upon asymmetric encryption to achieve this
PKI system: A system that defines the creation, storage and distribution of digital certificates
Pseudo-random: Something that isn’t truly random
Public key authentication: A key pair is generated by the user who wants to authenticate
Public key signatures: Digital signature generated by composing the message and combining it with the private key
RA (Registration Authority): It is responsible for verifying the identities of any entities requesting certificates to be signed and stored with the CA
Rainbow table attacks: To trade computational power for disk space by pre-computing the hashes and storing them in a table
Rainbow tables: A pre-computed table of all possible password values and their corresponding hashes
Random numbers: A very important concept in encryption because it avoids some kind of pattern that an adversary can discover through close observation and analysis of encrypted messages over time
RC4 (Rivest Cipher 4): Asymmetric stream cipher that gained widespread adoption because of its simplicity and speed
Remote attestation: The idea of a system authenticating its software and hardware configuration to a remote system
Root certificate authority: They are self signed because they are the start of the chain of trust, so there’s no higher authority that can sign on their behalf
RSA: One of the first practical asymmetric cryptography systems to be developed, named for the initials of the three co-inventors: Ron Rivest, Adi Shamir and Leonard Adleman
Secure channel: It is provided by IPsec, which provides confidentiality, integrity, and authentication of data being passed
Secure element: It’s a tamper resistant chip often embedded in the microprocessor or integrated into the mainboard of a mobile device
Secure Shell (SSH): A secure network protocol that uses encryption to allow access to a network service over unsecured networks
Security through obscurity: The principle that if no one knows what algorithm is being used or general security practices, then one is safe from attackers
Self-signed certificate: This certificate has been signed by the same entity that issued the certificate
Serial number: A unique identifier for their certificate assigned by the CA which allows the CA to manage and identify individual certificates
Session key: The shared symmetric encryption key using TLS sessions to encrypt data being sent back and forth
SHA1: It is part of the secure hash algorithm suite of functions, designed by the NSA and published in 1995
Shannon’s maxim: It states that the system should remain secure, even if your adversary knows exactly what kind of encryption systems you’re employing, as long as your keys remain secure
SSL 3.0: The latest revision of SSL that was deprecated in 2015
SSL/TLS Client Certificate: Certificates that are bound to clients and are used to authenticate the client to the server, allowing access control to a SSL/TLS service
SSL/TLS Server Certificate: A certificate that a web server presents to a client as part of the initial secure setup of an SSL, TLS connection
Steganography: The practice of hiding information from observers, but not encoding it
Stream ciphers: It takes a stream of input and encrypts the stream one character or one digit at a time, outputting one encrypted character or digit at a time
Subject: This field contains identifying information about the entity the certificate was issued to
Subject Public Key Info: These two subfields define the algorithm of the public key along with the public key itself
Substitution cipher: An encryption mechanism that replaces parts of your plaintext with ciphertext
Symmetric key algorithm: Encryption algorithms that use the same key to encrypt and decrypt messages
TLS 1.2: The current recommended revision of SSL
TLS 1.2 with AES GCM: A specific mode of operation for the AES block cipher that essentially turns it into a stream cipher
TLS Handshake: A mechanism to initially establish a channel for an application to communicate with a service
TPM (Trusted Platform Module): This is a hardware device that’s typically integrated into the hardware of a computer, that’s a dedicated crypto processor
Transport mode: One of the two modes of operations supported by IPsec. When used, only the payload of the IP packet is encrypted, leaving the IP headers untouched
Trusted execution environment (TEE): It provides a full-blown isolated execution environment that runs alongside the main OS
Tunnel: It is provided by L2TP, which permits the passing of unmodified packets from one network to another
Tunnel mode: One of the two modes of operations supported by IPsec. When used, the entire IP packet, header, payload, and all, is encrypted and encapsulated inside a new IP packet with new headers
Username and password authentication: Can be used in conjunction with certificate authentication, providing additional layers of security
Validity: This field contains two subfields, Not Before and Not After, which define the dates when the certificate is valid for
Version: What version of the X.509 standard certificate adheres to
VPN (Virtual Private Network): A secure method of connecting a device to a private network over the internet
Web of trust: It is where individuals instead of certificate authorities sign other individuals’ public keys
X.509 standard: It is what defines the format of digital certificates, as well as a certificate revocation list or CRL










