Ciphers vs. codes (article) | Cryptography | Khan Academy (2024)

Want to join the conversation?

Log in

  • batgirl

    11 years agoPosted 11 years ago. Direct link to batgirl's post “I have heard of people in...”

    I have heard of people in the military doing code braking but do people actually get pay to that for a living? And what are they called ?

    (28 votes)

    • Sid

      11 years agoPosted 11 years ago. Direct link to Sid's post “There are a lot of people...”

      Ciphers vs. codes (article) | Cryptography | Khan Academy (4)

      Ciphers vs. codes (article) | Cryptography | Khan Academy (5)

      Ciphers vs. codes (article) | Cryptography | Khan Academy (6)

      There are a lot of people who get paid to break codes. Just think about all the possible reasons people and organisations may have to try to keep their messages secret. The military and terrorists are given. Governments. Think about who would be interested in what they are trying to hide. Companies trying to keep business secrets, other companies trying to steal business secrets. Spies. Criminals. Paranoid people.

      Tens of thousands of highly skilled mathematicians and computer scientists spend their entire careers on stuff like that.

      It's a HUGE field, and without a doubt a colossal waste of human talent. A lot of it has to be done, though. It's a fact of life.

      (86 votes)

  • lucy2028

    10 years agoPosted 10 years ago. Direct link to lucy2028's post “I totally don't get can a...”

    I totally don't get can any one help me understand please

    (13 votes)

    • Ethan Glover

      10 years agoPosted 10 years ago. Direct link to Ethan Glover's post “A code involves simple tr...”

      A code involves simple translation. "ABC" is code for "Hello There!"
      A cipher is like a mathematical function, you input something and get an output. I input "ABC" into the cipher and it outputs "Hello There!".
      Code is more direct, you just look up what something means. A cipher is a way of translating the code without having everything listed out.

      (24 votes)

  • Rey #FilmmakerForLife #EstelioVeleth.

    9 years agoPosted 9 years ago. Direct link to Rey #FilmmakerForLife #EstelioVeleth.'s post “how come when you type in...”

    how come when you type in your name, and then type in the output, the 2nd output is not your name

    e.g if i type in 'clare' and get 'lujan'
    if i type in 'lujan' i don't get 'clare' ?

    please let me know if you have the answer to this question. if you don't get what i mean, or you don't know, please don't answer, just comment.
    Thanks!
    - a KA user.

    (10 votes)

    • K 468

      9 years agoPosted 9 years ago. Direct link to K 468's post “To return back to clare t...”

      To return back to clare the system adheres via the following equation I devised (don't know if it has been already discovered by other mathematicians) : E=26/S where E is the number of entries required to return back to initial input and S is the shift used, which is assumed to be constant. When we talk about entries we mean that we enter our initial state, A for example, into our Caesar cipher machine , and get B, then we enter B into the Caesar cipher and so on for the different cases i.e enter input receive output then enter output in a sort of feedback loop. For example to have the situation where clare goes to lucan then back to clare we count that 2 entries were required for this; thus rearranging gives S=26/E or S=26/2 which gives us a shift of 13 that would be required to obtain the situation desired. More generally however this equation works in all situations as if we have a shift of 4 giving us a decimal answer for the number of entries required of 6.5. As we can't have 6.5 entries we must multiply 6.5 by 1 then ,individually- without the 1- by 2 to give us 6.5 and 13, if the answer is a whole number then that is our answer, if it is a decimal then we multiply by the individual natural number until we receive a whole number which will be our answer. In the case of shift 4 the answer would be 13 entries to return back to the initial input. To put it another way the equation E=26/S can be a whole number, decimal number or fractional number and if E= a fraction represented by 26/S then multiply by 1, 2, 3, 4, 5 .... and so on until it turns into a whole number which will be your answer.Thus from observation it is taken that the number of entries required to return back to the initial state will always be less than or equal to 26 i.e E<= 26.

      (8 votes)

  • Maggie

    10 years agoPosted 10 years ago. Direct link to Maggie's post “So basically a cipher has...”

    So basically a cipher has a specific rule, and that rule would work for whatever things you put into that message,
    and a code would be a symbol/word/number that represents a meaning, right?

    (11 votes)

    • Medhansh Choudhury

      2 years agoPosted 2 years ago. Direct link to Medhansh Choudhury's post “Basically a cipher change...”

      Basically a cipher changes the literal characters typed in based on some algorithm while a code shortens linguistic constructs based on their meaning.

      (2 votes)

  • ShelbyR

    4 years agoPosted 4 years ago. Direct link to ShelbyR's post “how come I never get vote...”

    how come I never get votes, and this is so cool.

    (10 votes)

    • >: #BringBackBackgrounds

      10 months agoPosted 10 months ago. Direct link to >: #BringBackBackgrounds's post “What? Wdym?”

      What? Wdym?

      (1 vote)

  • phyllis.beck

    11 years agoPosted 11 years ago. Direct link to phyllis.beck's post “So any time you write cod...”

    So any time you write code for a computer program it is automatically considered an algorithm?

    (4 votes)

    • elvish07

      7 years agoPosted 7 years ago. Direct link to elvish07's post “An algorithm is a set of ...”

      An algorithm is a set of steps required to complete a task. So an algorithm for you going to work in the morning would include stuff like, waking up, eating breakfast, brushing your teeth, getting in your car, etc., etc.

      When computer code is written, every step has to be laid out for the computer because (without the use of 1000s of IF statements or advanced AI) it can't make any real decisions on its own. For instance, if the algorithm for you driving to work described a step to turn right on a given street, the computer will make that turn, even if the street is blocked for construction or an accident, because it won't deviate from the algorithm unless being programmed to. I hope this general example and simplified explanation helps.

      (6 votes)

  • Katie

    10 years agoPosted 10 years ago. Direct link to Katie's post “Who has read 'The Davinci...”

    Who has read 'The Davinci code' or 'Angels and Demons'?( Both books by Dan Brown.) I love how both books are full of codes that show the past, give clues to the present, and show the future. Vote if you agree and if you think these books and the author who wrote them are A M A Z I N G :D :D

    (6 votes)

    • InnocentRealist

      9 years agoPosted 9 years ago. Direct link to InnocentRealist's post “I think I watched the vid...”

      I think I watched the videos. They're pretty interesting, like you say. I wasn't interested in the New Testament but I was using it to learn Greek and got a very strong impression about Christ from the Gospels. The church we have now is only one version of many that have disappeared. All that history is interesting and important. Elaine Pagels is a very good historian and writer on this topic and I recommend her many books.

      (2 votes)

  • Ryan Ruddell

    10 years agoPosted 10 years ago. Direct link to Ryan Ruddell's post “People say cracking a cod...”

    People say cracking a code when it is actually craking a cipher.

    (5 votes)

  • cenicoleit

    11 years agoPosted 11 years ago. Direct link to cenicoleit's post “And the signal fire! Is i...”

    And the signal fire! Is it a binary code?

    (2 votes)

  • Pauuu9119

    9 years agoPosted 9 years ago. Direct link to Pauuu9119's post “So, what are algorithms d...”

    So, what are algorithms doing in the middle of ciphers and codes?

    (2 votes)

    • Maximillion Rider

      7 years agoPosted 7 years ago. Direct link to Maximillion Rider's post “There are way too many ci...”

      There are way too many ciphers to memerize them all they are just fun to use. Plus you can use them to your advantage.
      A-Z
      Z-A
      Numeric
      Vigenere
      Bill
      Other

      (2 votes)

Ciphers vs. codes (article) | Cryptography | Khan Academy (2024)

References

Top Articles
Latest Posts
Article information

Author: Gregorio Kreiger

Last Updated:

Views: 5351

Rating: 4.7 / 5 (77 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Gregorio Kreiger

Birthday: 1994-12-18

Address: 89212 Tracey Ramp, Sunside, MT 08453-0951

Phone: +9014805370218

Job: Customer Designer

Hobby: Mountain biking, Orienteering, Hiking, Sewing, Backpacking, Mushroom hunting, Backpacking

Introduction: My name is Gregorio Kreiger, I am a tender, brainy, enthusiastic, combative, agreeable, gentle, gentle person who loves writing and wants to share my knowledge and understanding with you.