[CrashCourse CS] #33 Cryptography

Steve·2021년 9월 25일
0

Defense in Depth - strategy of using many layers of varying security mechanisms to frustrate attackers.

Cryptography - "Secret writing"
Cipher - an algorithm that converts plain text to into ciphertext.
Encryption - process of making text secret
Decryption - reverse process

Substitution ciphers

Replace every letter in a message with somthing else according to a translation.

  • Caesar cipher - shift the letters in a message forward by three places.

Permutation ciphers

  • Columnar transposition cipher

By the 1990's, cryptography was mechanized in the form of encryption machines

  • The most famous - Germna Enigma

With the advent of computers, cryptography moved from hardware into software.
Data Encryption Standard - developed by IBM and the NSA in 1977.

  • Used binary keys that were 56 bits long.

In 2001, the Advanced Encryption Standard was finalized and published.

  • Uses 128, 192, or 256 bits
  • AES chops data up into 16-byte blocks, and then applies a series of substitutions and permutations, based on the key value, plus some other operations to obscure the message, and this process is repeated ten or more times for each block.
  • AES is used everywhere from encrypting files, transmitting data over WiFi with WPA2, accessing websites using HTTPS, etc.

Key exchange

An algorithm that lets computers agree on a key without ever sending one.

  • Done in one-way functions - mathmatical operations that are very easy to do in one direction, but hard to reverse.
  • Diffie-Hellman Key Exchange - use modular exponentiation for the one-way function.
  • These keys that can be used by both sender and receiver, to encrypt and decrypt messages, are called symmetric keys because the key is the same on both sides.

Asymmetric encryption

There are two different keys - often public and private key.

  • Knowing the public key only lets you encrypt, but not decrypt.
  • A digital public key can encrypt something that can only be decrypted with a private key.
  • Reverse is possible too: encrypting something with a private key that can be decrypted with public key
    • This is used for signing, where a server encrypts data using their private key. Anyone can decrpyt it using the server's public key.
    • This acts like an unforgeable signature, as only the owner, using their private key, can encrypt.
  • The most popular asymmetric encryption technique used today is RSA

Vocabuary

  • Cipher - 암호
  • Analogy - 비유
  • unforgeable - 위조 불가능한
  • imposter - 사칭하는 사람, 사기꾼
profile
게임과 프론트엔드에 관심이 많습니다.

7개의 댓글

comment-user-thumbnail
2025년 4월 16일

We would claim of which that is a an incredible write-up of any good man or women, now i am pleased to view that. soccer scholarships USA

답글 달기
comment-user-thumbnail
2025년 4월 27일

Frequent goes to here i will discuss the obvious way to appreciate it on your attempt, which often is why Now i am viewing the internet site day-to-day, in search of completely new, useful facts. Quite a few, many thanksfototapety dla dzieci

답글 달기
comment-user-thumbnail
2025년 4월 28일

Frequent goes to here i will discuss the obvious way to appreciate it on your attempt, which often is why Now i am viewing the internet site day-to-day, in search of completely new, useful facts. Quite a few, many thanks! fototapety dla dzieci

답글 달기
comment-user-thumbnail
5일 전

Remarkable content, decided in front of you and additionally book marked your blog post. Document can’t simply wait to read a great deal more right from you will. limo hire Hertfordshire

답글 달기
comment-user-thumbnail
3일 전

This particular is a superb publish We observed because of reveal this. It really is exactly what I needed to determine wish within long term you'll carry on with regard to discussing this type of superb publish. アニメ映画の話題

답글 달기
comment-user-thumbnail
2일 전

It a fabulous blog post As i looked at caused by have the application. Advise everything that Need be to find expectation on potential future you certainly will persist designed for writing a great wonderful blog post. 온라인카지노

답글 달기
comment-user-thumbnail
약 13시간 전

Fantastic submit, Many thanks regarding revealing This kind of information. Fantasticly composed write-up, only if almost all people supplied the identical amount of articles when you, the net would have been a greater spot. You should keep writing! 해외선물 나스닥

답글 달기