# 数据加密标准

**数据加密标准**（Data Encryption Standard，DES）是一种对称密钥分组密码，1977年被美国政府采纳为联邦信息处理标准（FIPS）46，以56位密钥对64位数据块进行加密。它是美国联邦政府首个公开规范的密码算法，并成为美国商用密码产业事实上的对称密钥标准，后因密钥长度不再提供足够安全性而于2005年撤销。<sup>[1](https://csrc.nist.gov/nist-cyber-history/cryptography/chapter)</sup><sup> • </sup><sup>[2](https://www.nist.gov/news-events/news/2005/06/nist-withdraws-outdated-data-encryption-standard)</sup>

| 关键事实 | 详情 |
|---|---|
| 类型 | 对称密钥分组密码：同一56位密钥用于加密和解密<sup>[3](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication958.pdf)</sup> |
| 分组与密钥长度 | 64位数据块；64位密钥参数含56个密钥比特加8个奇偶校验比特<sup>[4](https://nvlpubs.nist.gov/nistpubs/Legacy/FIPS/fipspub46.pdf)</sup> |
| 结构 | 16轮相同的轮运算，每轮使用由密钥编排选出的48位密钥材料，外加初始置换和末尾置换<sup>[5](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nbsspecialpublication500-20e1980.pdf)</sup> |
| 标准化 | 1977年1月作为FIPS 46发布；被采纳为ANSI标准X3.92-1981（数据加密算法）<sup>[1](https://csrc.nist.gov/nist-cyber-history/cryptography/chapter)</sup><sup> • </sup><sup>[6](https://nvlpubs.nist.gov/nistpubs/sp958-lide/html/250-253.html)</sup> |
| 密钥空间 | 56位密钥，约7.2 × 10<sup>16</sup>种可能密钥<sup>[7](https://www.nist.gov/news-events/news/2001/12/commerce-secretary-announces-new-standard-global-information-security)</sup> |
| 撤销 | FIPS 46-3于2005年5月19日撤销；由高级加密标准（FIPS 197，2001年）取代<sup>[2](https://www.nist.gov/news-events/news/2005/06/nist-withdraws-outdated-data-encryption-standard)</sup> |
| 后续使用 | DES引擎在三重DES（TDEA）中延续，而TDEA本身在2023年12月31日之后被禁止用于施加保护<sup>[8](https://csrc.nist.gov/News/2023/nist-to-withdraw-sp-800-67-rev-2)</sup> |

## 算法原理

DES是一种对称密码：同一二进制密钥既加密又解密数据块。它在56位密钥控制下对64位明文块运算，产生64位密文，解密则以同一密钥反向运行同一过程。<sup>[3](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication958.pdf)</sup>密钥的生成方式是：算法直接使用的56个比特为随机值，其余8个比特使每个8位字节的奇偶性为奇，以提供错误检测。<sup>[4](https://nvlpubs.nist.gov/nistpubs/Legacy/FIPS/fipspub46.pdf)</sup>

算法的核心是十六轮运算的串联。每轮取64位输入，将32位右半部分扩展为48位，与48位轮密钥按模2相加，将结果分为八个6位块，每块选择一个4位S盒表项，再将所得32位与左半部分结合，然后交换左右两半。除初始置换和末尾置换外，十六轮完全相同，仅轮密钥因密钥编排而不同。<sup>[5](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nbsspecialpublication500-20e1980.pdf)</sup>密钥编排从56位密钥导出十六个48位轮密钥，每轮将两个28位半部循环移位一位或两位；没有哪个密钥比特被使用超过15次或少于12次。<sup>[5](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nbsspecialpublication500-20e1980.pdf)</sup>

该标准在设计上着眼于高效的硬件实现。早期NBS测试设备完成一次64位块加密或解密约需6至8微秒。<sup>[5](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nbsspecialpublication500-20e1980.pdf)</sup>

## 起源与发展

美国国家标准局（NBS），即NIST的前身，于1970年代初启动计算机安全计划，并于1973年开始制定数据加密标准，以保护计算机数据并实现大规模商业互操作。此前加密一直是军事和情报机构的事务，NBS率先为广泛的商业和非机密政府用途寻求标准算法，其原则是安全性应仅取决于密钥的保密性，而算法本身公开。<sup>[6](https://nvlpubs.nist.gov/nistpubs/sp958-lide/html/250-253.html)</sup><sup> • </sup><sup>[9](https://www.nist.gov/blogs/cybersecurity-insights/cornerstone-cybersecurity-cryptographic-standards-and-50-year-evolution)</sup>

NBS于1973年5月和1974年8月两次在《[联邦公报](https://www.edgepedia.org/zh/federal-register)》上征集候选算法，收到IBM提交的一种算法。IBM的密码研究小组于1960年代末在董事长小托马斯·J·沃森支持下成立，由密码学家霍斯特·费斯泰尔领导，曾创建一种名为“Lucifer”的加密方法，为英国[劳埃德银行](https://www.edgepedia.org/zh/lloyds-bank)的一套现金出纳系统保护数据；该方法演变为DES。<sup>[6](https://nvlpubs.nist.gov/nistpubs/sp958-lide/html/250-253.html)</sup><sup> • </sup><sup>[10](https://research.ibm.com/topics/cryptography)</sup>IBM的主要贡献者包括费斯泰尔、数学家艾伦·康海姆和唐·库珀史密斯、最终DES算法的主要设计者沃尔特·图赫曼，以及卡尔·迈耶和迈克·马蒂亚斯。<sup>[6](https://nvlpubs.nist.gov/nistpubs/sp958-lide/html/250-253.html)</sup>在1976年就该算法的数学基础和实用性举行公开研讨会后，NBS于1977年11月23日将DES作为FIPS 46发布（标准本身标注日期为1977年1月15日）。<sup>[1](https://csrc.nist.gov/nist-cyber-history/cryptography/chapter)</sup><sup> • </sup><sup>[4](https://nvlpubs.nist.gov/nistpubs/Legacy/FIPS/fipspub46.pdf)</sup>

## 设计与密钥长度之争

从一开始就有两场争议伴随着DES。第一，[国家安全局](https://www.edgepedia.org/zh/national-security-agency)在整个开发过程中与NBS合作，评估了所提算法，并提出了修改建议，IBM随后据此作了修改；一些批评者怀疑NSA故意削弱了算法或引入了陷门。<sup>[1](https://csrc.nist.gov/nist-cyber-history/cryptography/chapter)</sup>第二，密码学家[惠特菲尔德·迪菲](https://www.edgepedia.org/zh/whitfield-diffie)和马丁·赫尔曼在1977年的论文《对NBS数据加密标准的穷举密码分析》中指出，有效的56位密钥长度（64位密钥减去8个校验位）太短，而不断增长的计算机算力很快将使穷尽密钥——即尝试每一种可能的密钥——变得可行。NBS回应称，该标准在其预期的15年寿命内足以抵御任何实际攻击，并将每五年审查一次。<sup>[1](https://csrc.nist.gov/nist-cyber-history/cryptography/chapter)</sup>

批评者对计算发展的趋势判断正确。该标准的寿命最初估计为15年，但它作为联邦标准存续的时间远长于此，到1990年代末，56位密钥已处于专用硬件的破解能力范围之内。<sup>[6](https://nvlpubs.nist.gov/nistpubs/sp958-lide/html/250-253.html)</sup>

## 暴力破解

1997年，一条用DES加密的消息通过大规模计算机网络穷尽密钥，在约五个月内被破解。1998年，[电子前沿基金会](https://www.edgepedia.org/zh/electronic-frontier-foundation)建造了一台专用机器——EFF“DES破解机”，使用定制半导体芯片，芯片成本约13万美元，项目总预算不到25万美元；它平均约4.5天即可找到一个DES密钥。<sup>[6](https://nvlpubs.nist.gov/nistpubs/sp958-lide/html/250-253.html)</sup>

这台机器的公开演示解决了问题。1998年7月17日，DES破解机在不到三天内赢得RSA实验室的“DES挑战赛II”及1万美元奖金，打破了由数万台计算机组成的网络所创的39天纪录。<sup>[11](https://w2.eff.org/Privacy/Crypto/Crypto_misc/DESCracker/)</sup>Cryptography Research对该项目的记述称，当挑战密钥在搜索56小时后被找到时，超过37,000个搜索单元每秒测试逾920亿个密钥。<sup>[12](https://www.foo.be/docs/eff-des-cracker/info/)</sup>六个月后，1999年1月，Distributed.Net与DES破解机及近10万台个人电脑组成的网络合作，以22小时15分的纪录赢得DES挑战赛III。<sup>[11](https://w2.eff.org/Privacy/Crypto/Crypto_misc/DESCracker/)</sup>

## 三重DES与撤销

1999年10月25日发布的FIPS 46-3同时规定了单重DES和三重数据加密算法（TDEA），后者用两个或三个不同的56位密钥将DES引擎运行三次，有效密钥长度为112或168位。<sup>[13](https://csrc.nist.gov/pubs/fips/46-3/final)</sup><sup> • </sup><sup>[6](https://nvlpubs.nist.gov/nistpubs/sp958-lide/html/250-253.html)</sup>TDEA被设计为单重DES的过渡替代方案。<sup>[8](https://csrc.nist.gov/News/2023/nist-to-withdraw-sp-800-67-rev-2)</sup>

与此同时，NIST在1990年代开始规划后继标准，并于1997年发起首次全球公开竞赛，征集新的128位分组密码，密钥长度可选128、192和256位。由比利时的若安·达门和文森特·赖门设计的Rijndael算法胜出，于2001年在FIPS 197中获批为[高级加密标准](https://www.edgepedia.org/zh/advanced-encryption-standard)。<sup>[9](https://www.nist.gov/blogs/cybersecurity-insights/cornerstone-cybersecurity-cryptographic-standards-and-50-year-evolution)</sup><sup> • </sup><sup>[7](https://www.nist.gov/news-events/news/2001/12/commerce-secretary-announces-new-standard-global-information-security)</sup><sup> • </sup><sup>[14](https://csrc.nist.gov/pubs/fips/197/final)</sup>

2005年，商务部长卡洛斯·古铁雷斯批准撤销FIPS 46-3及两项相关标准，自2005年5月19日起生效，理由是DES不再提供保护联邦政府信息所需的安全性；各机构被要求改用更快更强的AES。<sup>[2](https://www.nist.gov/news-events/news/2005/06/nist-withdraws-outdated-data-encryption-standard)</sup><sup> • </sup><sup>[15](https://csrc.nist.gov/projects/cryptographic-algorithm-validation-program/retired-testing)</sup>TDEA紧随其后：NIST此前一直不推荐将其用于施加密码保护，直至2023年底，并在2023年12月31日之后禁止将其用于此用途，于2024年1月1日撤销TDEA建议SP 800-67 Rev. 2，同时允许用TDEA解密已受保护的数据。<sup>[8](https://csrc.nist.gov/News/2023/nist-to-withdraw-sp-800-67-rev-2)</sup>

## 遗产

DES以持久的方式塑造了密码实践。它是美国政府制定的首个公开加密标准，并成为美国商用密码产业事实上的对称密钥标准，保护金融交易，并在零售银行业中保护银行卡交易使用的个人识别码。<sup>[9](https://www.nist.gov/blogs/cybersecurity-insights/cornerstone-cybersecurity-cryptographic-standards-and-50-year-evolution)</sup><sup> • </sup><sup>[1](https://csrc.nist.gov/nist-cyber-history/cryptography/chapter)</sup>它的发布也推动了密码分析的学术研究，为研究者提供了一个可公开分析的算法；NBS采用的开放开发模式——公布算法并依赖公众审查——成为包括AES在内的后来标准的范本。<sup>[6](https://nvlpubs.nist.gov/nistpubs/sp958-lide/html/250-253.html)</sup>

密钥长度之争还产生了一个持久的基准。密码学专家1996年的研究《为提供充分商业安全性的对称密码最小密钥长度》得出结论：在此后20年内保护数据的秘密密钥密码需要至少90位的有效密钥长度，远高于DES的56位。<sup>[16](https://w2.eff.org/Privacy/Crypto/Crypto_misc/DESCracker/HTML/19980716_eff_des_faq.html)</sup>NIST自己的回顾指出，穷举搜索一个DES密钥只需2<sup>56</sup>次运算，以现代计算能力而言微不足道，而AES以其128、192和256位密钥提供的128位密钥数量约为DES的10<sup>21</sup>倍。<sup>[9](https://www.nist.gov/blogs/cybersecurity-insights/cornerstone-cybersecurity-cryptographic-standards-and-50-year-evolution)</sup><sup> • </sup><sup>[7](https://www.nist.gov/news-events/news/2001/12/commerce-secretary-announces-new-standard-global-information-security)</sup>

## References

1. [Cryptography, NIST Cyber History chapter, CSRC](https://csrc.nist.gov/nist-cyber-history/cryptography/chapter)
2. [NIST Withdraws Outdated Data Encryption Standard, NIST news, June 2, 2005](https://www.nist.gov/news-events/news/2005/06/nist-withdraws-outdated-data-encryption-standard)
3. [The DES algorithm described in NIST Special Publication 958](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication958.pdf)
4. [FIPS PUB 46, Data Encryption Standard, January 15, 1977](https://nvlpubs.nist.gov/nistpubs/Legacy/FIPS/fipspub46.pdf)
5. [NBS Special Publication 500-20, Validating the correctness of hardware implementations of the NBS data encryption standard (1980)](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nbsspecialpublication500-20e1980.pdf)
6. [William E. Burr, "A Brief History of Cryptographic Standards," NIST SP 958 pp. 250–253](https://nvlpubs.nist.gov/nistpubs/sp958-lide/html/250-253.html)
7. [Commerce Secretary Announces New Standard for Global Information Security, NIST, December 2001](https://www.nist.gov/news-events/news/2001/12/commerce-secretary-announces-new-standard-global-information-security)
8. [NIST to Withdraw Special Publication 800-67 Revision 2, CSRC, June 29, 2023](https://csrc.nist.gov/News/2023/nist-to-withdraw-sp-800-67-rev-2)
9. [The Cornerstone of Cybersecurity: Cryptographic Standards and a 50-Year Evolution, NIST blog](https://www.nist.gov/blogs/cybersecurity-insights/cornerstone-cybersecurity-cryptographic-standards-and-50-year-evolution)
10. [Cryptography, IBM Research](https://research.ibm.com/topics/cryptography)
11. [EFF DES Cracker project page, Electronic Frontier Foundation](https://w2.eff.org/Privacy/Crypto/Crypto_misc/DESCracker/)
12. [Cryptography Research, DES Key Search Project](https://www.foo.be/docs/eff-des-cracker/info/)
13. [FIPS 46-3, Data Encryption Standard (DES), CSRC, October 25, 1999](https://csrc.nist.gov/pubs/fips/46-3/final)
14. [FIPS 197, Advanced Encryption Standard (AES), CSRC](https://csrc.nist.gov/pubs/fips/197/final)
15. [Cryptographic Algorithm Validation Program, Retired Testing, CSRC](https://csrc.nist.gov/projects/cryptographic-algorithm-validation-program/retired-testing)
16. [EFF DES Cracker FAQ, Electronic Frontier Foundation](https://w2.eff.org/Privacy/Crypto/Crypto_misc/DESCracker/HTML/19980716_eff_des_faq.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Security governance and internet policy › Cryptographic protocols › Protocol standards and specifications

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/data-encryption-standard

English original: https://www.edgepedia.org/data-encryption-standard
