compression, encryption and hashing Flashcards
what is compression
reducing storage space required of a file
important for sharing files over networks
lossy compression
reduces file size while removing some information
lossless compresion
reduces file size and doesnt lose any information
og file can be recovered
what is run length encoding
method of lossless compression
repeated values are removed and replaces with one occurence of the data and then how many imes it should be repeated
what is dictionary encoding
method of lossless compression
frequently occuring pieces of data are replaced with an index and stored in a dictionary
what is symmetric encryption
sender and reciever share the same private key in a key exchange
what is asymmetric encryption
Asymmetric encryption uses two keys: a public key, which is shared with everyone, and a private key, which you keep secret. If someone wants to send you a secure message, they use your public key to encrypt it, and only you can decrypt it with your private key.
To prove a message is really from you, you can encrypt it with your private key. Since anyone can access your public key, they can use it to check that the message came from you.