1.3.1 Flashcards
lossy compression
compresses files more than lossless but loses some of the quality and can not get it back usually by removing non essential information
e.g. gets rid of frequencies we can’t hear
can’t be used on text files because losing even 1 letter could cause issues
lossless compression
doesn’t compress the file size as much as lossy but doesn’t lose any of the quality after it has been compressed by recording patterns rather than removing data
e.g. looking for common words in a text file or blocks of colour in photos
Run Length Encoding
records the number of times something repeats
Not just for photos but works best especially with small colour palettes
Dictionary based Compression
If certain words appear multiple times in text it is used e.g. the can be replaced with 000 which will save lots of space (dictionary will take up extra space so weigh up)
symmetric encryption
also known as a private key - same key to encrypt and decrypt
asymmetric encryption
uses 2 separate but related keys (public and private)
public - the person who sent you the data uses it
private - you use the key to decrypt the data
hashing
its irreversible and impossible to crack in most cases unless you try all possibilities used for encrypted pins and passwords so hackers can’t read them - the hash function compares the users input and the one stored