Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

In cryptography, a cipher is an algorithm that can encode cleartext to make it unreadable, and to decode it back.

Ciphers were common long before the information age (e.g., substitution ciphers, transposition ciphers, and permutation ciphers), but none of them were cryptographically secure except for the one-time pad.

Modern ciphers are designed to withstand attacks discovered by a cryptanalyst. There is no guarantee that all attack methods have been discovered, but each algorithm is judged against known classes of attacks.

Ciphers operate two ways, either as block ciphers on successive blocks, or buffers, of data, or as stream ciphers on a continuous data flow (often of sound or video).

They also are classified according to how their keys are handled:

  • symmetric key algorithms use the same key to encode and decode a message. The key also must be sent securely if the message is to stay confidential.
  • asymmetric key algorithms use a different key for encryption and decryption.

Learn more

General knowledge

文档标签和贡献者

 此页面的贡献者: klez, marumari, Andrew_Pfeiffer, SJW, hbloomer, kscarfone, teoli
 最后编辑者: klez,