unit 4 Flashcards
what is compression?
reducing the size of a file
what is lossy compression?
reducing file size when some data is discarded/removed
what is lossless compression?
reducing file size and all original data is kept
what are the benefits of lossy compression?
- greatly reduced file sizes
suitable for media streaming where some data loss is acceptable
what are the benefits of lossless compression?
maintains original data
best for text and data thar require integrity like documents
what are the drawbacks of lossy compression?
irreversible loss of data quality
not suitable for text or archival storage
what are the drawbacks of lossless compression?
larger file sizes than lossy
requires high bandwidth when streaming
what is run length encoding?
a form of data compression that condenses identical elements into s single value with a count
where is RLE used?
in bitmap images to compress sequences of the same colour
what is dictionary coding?
a compression which replaces recurring sequences with shorter, unique codes
a dictionary is compiled to map original sequences to special codes
what is encryption?
process of converting readable data into an unreadable format to provide security
what is the purpose of keys in encryption?
they are specialised programs designed to scramble or unscramble data
how does symmetric encryption work?
sender uses a key to encrypt the data before transmission
the receiver uses the same key to decrypt the data
what are the benefits of symmetric encryption?
faster, making it ideal for encrypting large amounts of data
what are the drawbacks of symmetric encryption?
challenge of securely sharing the key, can be intercepted
how does asymmetric encryption work?
uses 2 keys, public one for encryption, private one for decryption
receivers openly share their public key and senders use this public key to encrypt the data
receiver’s private key is the only key that can decrypt the data
what are the benefits of asymmetric encryption?
secure, best for confidential transmissions
suitable for smaller data
what is hashing?
the method to convert any data into a fixed-size string of characters
what is the general rule for hashing?
same input always produces same hash
how is hashing used in password storage?
the password a user provides is hashed, it is then stored in a database
when they log in they enter their password and the system hashed their input
it is then compared to the stored hash in the database
what are the benefits of hashing passwords?
adds extra layer of security
if database is compromised, the attacker can’t use the hashed passwords
users’ raw passwords are not exposed
how is hashing used in data retrieval?
how is data integrity linked to hashing?
when data is transferred, susceptible to loss of packets or interference, so if hashes are compared it allows the system to verify the integrity of the data
what is a database?
an organised collection of data which allows easy storage and retrieval of information