Cryptography Fundamentals
Transcript
Welcome to our video on the fundamentals of cryptography part of the CompTIA Security Plus guide to network security fundamentals in this session we'll explore the Core Concepts of cryptography including the definition key algorithms like hash symmetric and asymmetric cryptography and the various ways cryptography is applied in network security we'll also discuss the benefits of cryptography such as confidentiality Integrity authentication non-repudiation and
obfuscation along with some limitations and common attacks stay tuned as we delve into the fascinating world of cryptography and learn how it helps protect our digital information by the end of this module you should be able to one Define cryptography two describe hash symmetric and asymmetric cryptographic algorith ithms three list the various ways in which cryptography is used four explain different cryptographic limitations and attacks steganography is a
technique used to hide the existence of data it can embed hidden messages within image audio or video files by dividing and placing the data in unused portions of the file one common method involves concealing data within the file's header fields or between sections of metadata which describe the file's content or structure this way the hidden data remains undetected providing an additional layer of security cryptography is like a secret code language used to keep our
information safe by transforming readable data or plain text into a scrambled unreadable format called Cipher text cryptography hides information from unauthorized eyes this transformation happens through encryption where special mathematical rules or algorithms scramble the data to make the data readable again we use decryption kind of like decoding a secret message a key part of this process is the key which controls how the encryption and decryption occur without the
right key the data stays locked and secure so cryptography isn't just for Tech experts it protects our everyday digital activities ensuring our private information stays just that private cryptography provides a number of benefits confidentiality is like a secret handshake it ensures that only the right eyes see your information Integrity keeps your data intact guaranteeing it reaches its destination just as you sent it authentication acts like
an ID check confirming the identity of the sender while non-repudiation makes sure that actions can't be denied after they're taken holding everyone accountable lastly obfuscation and security through obscurity keep your data safe by making it and its protections hard to figure out for anyone not in the know cryptography isn't just about security it empowers trust and reliability in our digital interactions knowledge check Leila has encrypted
a document so that it can only be viewed by those who have been provided the key what protection has she given to this document a confidential ity B Integrity C authentication D obfuscation the correct answer is a confidentiality by encrypting the document Leila ensures that only authorized individuals with the key can access and view its contents keeping the information private and confidential in the world of cryptography we have different tools that work together
to keep your information safe first there are hash algorithms these create unique codes for your data acting like secret fingerprints to ensure nothing has been altered next we have symmetric cryptographic algorithms they use the same key to both lock and unlock your message just like a special key for a secret box and then there are asymmetric cryptographic algorithms these use different keys for locking and unlocking providing an extra layer
of security like having a lock that needs two keys to open so whether you're sending messages or protecting your digital files cryptography acts like a digital superhero safeguarding your information here are several variations of algorithms first up we have the onetime pad imagine you have a secret message like hello and a random key like quirt you combine them using OTP and it becomes dltb but remember you can only use this key once next we have
stream Cipher it's like playing a game where you replace each letter in your message with another so h e l l o might turn into if MMP then there's block Cipher this is like taking a whole sentence and mixing it up at once so how are you could become U ra yo lastly we have the sponge function it's like ending up ingredients to make a smoothie you can put in any amount and you'll get a variable length result so whether it's swapping letters mixing up sentences or
blending texts cryptography is like a cool digital puzzle keeping our messages safe and sound think of a hash algorithm as a digital fingerprint for your data it's like a unique stamp that ensures your data is unchanged and genuine now this fingerprint also known as a the digest represents what's inside your data and helps us compare it to make sure everything's in order but here's the cool part hashing is a one-way process once your data is hashed you
can't reverse it to see the original it's like a oneway street now when we talk about secure hash algorithms we're talking about digital locks for your data secure hash algorithm sha is like a super strong Lock And there are others like ripe MD and Whirlpool that also keep your data safe so whether you're sending messages or storing important files hashing acts like a digital security guard making sure everything stays exactly as it should be safe and
unchanged symmetric cryptographic algorithms imagine having a magic key that both locks and unlocks a treasure chest that's what symmetric cryptography does it uses the same key to keep your messages safe and then unlock them when needed private key cryptography think of it as having a secret code between you and your best friend you both know the code but you keep it private that way only you and your friend can understand your messages strong encryption it's
like having an ultra strong lock on your diary if you keep the key safe no one else can peek inside it's just for you and your trusted friend strong algorithms Advanced encryption standard AES this is like the Fort Knox of locks for your data super tough to crack blow fish into two fish these are like having extra layers of protection on your digital Treasure Chest making it even harder for anyone to break in so whether you're sending secret messages or keeping
your personal stuff safe these Concepts help make sure your digital world stays secure imagine having a treasure box full of secrets that you want to share with friends you use a magical key to keep it locked and safe like a secret password known only to you and your friends with symmetric algorithms sharing this key among many friends can be challenging like trying to share a secret password with too many people but with asymmetric cryptography you have two keys a public key for sharing with everyone and a private key just for you it's like having a digital lock with two keys one for everyone to use and one secret key only you know the public key is like a digital welcome mat open to everyone while the private key is your secret weapon known only to you this setup ensures your digital space stays secure allowing you to share and protect your
secrets effectively imagine you have a special lock and key system for your digital secrets you have two keys one that you share with everyone the public key and one that's just for you the private key the public key is like a digital welcome mat open for anyone to use and access your secrets but the private key that's your secret weapon known only to you like having a hidden key to your digital Treasure Chest the cool part these keys can work in both directions making it easy to
share and protect your digital secrets with ease RSA and ECC are two cool ways to keep your digital Secrets safe RSA like a tricky math puzzle uses big prime numbers to create a secret key that's hard to crack it's like having a super secure lock for your messages on the other hand ECC is like sharing a secret shape and point with your friend to create a key because the keys are smaller ECC is faster and loved by modern devices so whether it's the math magic of RSA or the Speedy ECC your digital secrets are in good hands imagine you're sending a secret message to your friend and you want to make sure they know it's really from you that's where the digital signature algorithm DSA comes in it creates a special digital signature that verifies you it shows your friend that the
message is indeed from you prevents denial your friend can't say they didn't receive the message from you ensures Integrity it proves that the message hasn't been changed along the way now when when it comes to exchanging secret Keys securely there are cool methods like Diffy Helman DH Diffy Helman ephemeral DHE elliptic curve Diffy Helman ecdh and perfect forward secrecy PFS these methods make sure that only you and your friend can understand the secret Keys keeping your messages
safe and sound knowledge check which algorithm uses the same key to both encrypt and decrypt data a asymmetric cryptographic algorithm B hashing algorithm c pairwise key pair algorithm D symmetric cryptographic algorithm the correct answer is D symmetric cryptographic algorithm symmetric algorithms use the same key for both encryption and decryption this means the sender and the receiver must both have the same secret key and keep it secure examples include a
d s Advanced encryption standard and day data encryption standard symmetric cryptography is efficient and faster for encrypting large amounts of data but requires secure key distribution methods as both parties need to have the same key file and file system cryptography involves using encryption software to protect data you can encrypt or decrypt individual files using file level encryption or protect groups of files by leveraging the operating systems file system
capabilities there are various third-party tools available for encryption including new privacy guard gnupg ax Crypt folder lock and verac crypt Microsoft Windows offers a built-in encrypting file system EFS which integrates tightly with the file system making encryption and decryption processes seamless and transparent to the user dis encryption involves using full dis encryption fde to protect all data on a hard drive a well-known example of this is bit Locker which is included
with Microsoft Windows bit Locker encrypts the entire dis including the Windows registry ensuring comprehensive data protection additionally volume level encryption can be used to secure specific sections of a drive known as volumes which are accessible by users and have an Associated file system this layer approach enhances data security by protecting both entire discs and individual sections database encryption can be done in two main ways the plug-in method involves adding an
encryption module to the database management system dbms in contrast transparent data encryption TDE handles encryption and decryption within the database engine itself TDE is easier to manage because it doesn't require any additional packages or changes to the database engine or dbms code this makes tdea straightforward and efficient option for securing database data cryptography can be integrated directly into Hardware offering a robust layer of security this approach includes
embedding cryptographic features within the hardware components of devices like USB drives and standard hard drives for instance when cryptographic functions are built into to the hardware of a USB device all data saved onto the device is automatically encrypted safeguarding the information seamlessly moreover certain Advanced USB devices equipped with hardware-based encryption allow administrators to remotely control access they can prevent unauthorized access disable a user's access or even command the device to erase all its stored data through a self-destruct sequence this direct integration of cryptography into Hardware ensures a high level of security with minimal user intervention making it an efficient and reliable method for protecting sensitive data self-encrypting drives are special drives that protect all data written to them
during power up the drive and host device perform an authentication process if authentication fails the drive can be set to deny access or even delete the encryption Keys making all data permanently unreadable a hardware security module HSM is an external device used for cryptographic purposes it has a built-in key generator and key storage and it speeds up both symmetric and asymmetric encryption processes a trusted execution environment is a secure area within a computer
that protects the confidentiality and integrity of code in data it's like having a Secure Vault inside your device The Trusted platform module is a globally recognized standard for such secure areas offering various cryptographic Services it includes features like a random number generator and supports asymmetric encryption allowing it to create public and private keys on Apple and Android devices this secure area is known as a secure Enclave a blockchain is a shared
unchangeable record that helps record transactions and track Assets in a business Network it works by allowing a group of computers to regularly agree on the true state of a distributed Ledger ensuring everyone has the same information there are different types of blockchains a public blockchain is open to anyone who wants to join a private blockchain is restricted to certain users and a Federated blockchain combines both public and private features making it useful for organizations that need a bit of both adding cryptography is essential for securing low power devices and applications that need Fast Response times but it's challenging these devices have limited resources and cryptographic algorithms need both time and energy to work this creates a balancing act between maintaining security and ensuring the device performs well the key is to find a way to protect the device without overloading its limited capabilities two common
cryptography attacks are algorithm attacks and collision attacks attackers use various methods to get around strong encryption such as known Cipher text attacks where they analyze the encrypted data to find patterns and downgrade attacks where they force a system to switch from a secure mode to an older less secure one statistical tools can help attackers find these patterns in the cipher text which can then reveal the original data or the encryption key imagine you're using a special formula to create a unique code for each message you send so that even if someone else writes the exact same message their code would be different however in a collision attack someone tries really hard to write a different message that ends up with the same code as yours when they succeed it's called a collision just like when two cars end up in the same spot and crash now there's
another interesting concept called a birthday attack which uses the idea from the birthday Paradox this Paradox says that you only need 253 people in a room for there to be a 50% chance that two of them share the same birthday similarly in cryptography a birthday attack means finding two different messages that end up with the same code quicker than you might expect just like finding Birthday Twins in a large room full of people Quantum Computing might sound like something from a sci-fi movie but it's a real technology that uses the rules of quantum physics instead of using bits like traditional computers which can be either zero or one quantum computers use cubits these cubits are super special because they can be both zero and one at the same time this allows a single Cubit to perform two calculations at once however this cool feature also presents a
big challenge for keeping information safe quantum computers can solve certain problems very quickly like factoring large numbers using many atoms simultaneously this means they could break the codes that keep our digital information secure today but don't worry scientists are already on it developing new types of security called postquantum cryptography these new methods are designed to be safe from quantum computers ensuring our data stays secure even in the quantum
future knowledge check which type of encryption would protect all data on a hard drive including the installed OS a fde e b s s e d c TX PM D hrhs the answer is a full disc encryption which protects all data on a hard drive including the installed operating system by encrypting the entire dis this means that all files folders and system files are encrypted making them inaccessible without the correct decryption key
for example if you have a laptop with fde enabled and someone steals the laptop they won't be able to access any data on the hard drive without the encryption key even if they remove the hard drive and try to access it from another device the data will remain encrypted and unreadable self assessment rate your competence of the following module objectives on a scale of 1 to five where five indicates you have full confidence in your competence of that objective and one indicates you
have very little confidence in your confidence of that objective if you self score less than four you should consider reviewing the module and related exercises one Define cryptography two describe hash symmetric and asymmetric cryptographic algorithms three list the various ways in which cryptography is used four explain different cryptographic limitations and attacks congratulations on completing module 3 fundamentals of cryptography from champas CompTIA
Security Plus guide to network security fundamentals e8th Edition you've gained a solid understanding of cryptography which is like a secret code that keeps information safe and secure you can Define cryptography and describe hash symmetric and asymmetric cryptographic algorithms you've also learned about the various ways cryptography is used from securing online transactions to protecting emails and messages understanding the limitations and potential attacks in cryptography such as Brute Force attacks is crucial for ensuring data security keep exploring cyber security and don't forget to like subscribe and share this valuable knowledge with your friends and followers on social media to spread awareness about the importance of cryptography in our digital world

Ask anything
We've read this whole study set, so questions about it get the best answers.