Re: [問題] 問一個單字
※ 引述《armopen (考個沒完)》之銘言:
: 這篇文章是在講「如何編密碼和解碼」,
: (1) 第一個問題是同樣是密碼,有兩個單字 cipher 和 code 的中文要如何區別?
: 還是只能從文章的內容來辨別?
http://library.thinkquest.org/04oct/00451/codeandcipherbasics.htm
Codes and ciphers are not the same thing. When you write a message in code
you replace words, phrases, or messages by different words, letters, or
symbols. When you translate the message into code it is called encoding.
Ciphers, on the other hand, translate every single letter, number, or symbol
with a different letter, number, or symbol.
簡單來說code比較接近「文字謎」或是黑話、暗語等等(例如Da Vinci Code)
而cipher比較偏向數學的作法(例如Enigma、DES或是AES)
不過語言運用上code跟cipher之間的界線其實並不那麼清楚
例如Caeser Cipher也被稱為Caesar Code
--
╭洄瀾夜月──────────────╮
│http://www.wretch.cc/blog/flyindeath│
╰──────────────────╯
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.217.94.55
※ 編輯: FlyinDeath 來自: 61.217.94.55 (06/19 21:04)
討論串 (同標題文章)
translator 近期熱門文章
PTT職涯區 即時熱門文章