合什么意思| viola是什么意思| 男人不尊重你说明什么| 棋逢对手下一句是什么| 前庭神经炎挂什么科| 什么叫有机| st是什么单位| 面红耳赤是什么生肖| 芦根煮水的功效是什么| 为什么今年有两个六月| 什么叫统招生| 粑粑黑色是什么原因| 为什么叫马桶| 爱彼手表什么档次| 为什么脚会有酸臭味| youngor是什么牌子| 证件照一般是什么底色| 情是什么意思| 打碎碗是什么预兆| 无所不用其极什么意思| 牛黄解毒片不能和什么药一起吃| 百步穿杨是什么生肖| 芒果与什么食物相克| 糖耐量是什么| 丑未戌三刑会发生什么| 胃疼吃什么食物最养胃| 蛀虫指什么生肖| erdos是什么牌子| 华盖星是什么意思| 黄曲霉菌是什么颜色| 手掌发红是什么病| 最好的红酒是什么牌子| 心脏大是什么病严重吗| 喝碱性水有什么好处| 小孩坐火车需要什么证件| 为什么运动完会恶心头晕想吐| 周公吐哺天下归心是什么意思| 恃势之刑是什么意思| 氧氟沙星和诺氟沙星有什么区别| 安全期一般是什么时候| 紫藤什么时候开花| 婴儿拉肚子是什么原因造成的| 水鸭跟什么煲汤最佳| 长期便秘吃什么药好| 不可亵玩焉的亵是什么意思| 梦见旅游是什么意思| 烤乳扇是什么| 酷暑难当是什么意思| 血栓吃什么药可以疏通血管| 黑油是什么油| 头顶痛吃什么药效果好| 锦衣玉食什么意思| 女性尿道出血是什么原因引起的| 双侧肋膈角锐利是什么意思| 为什么会得甲亢| kfc是什么| 女生腋毛多是什么原因| 蜗牛是什么动物| 什么是碱| 冷幽默是什么意思| cc什么意思| 小儿肠炎吃什么药最好| 儿童枕头用什么枕芯好| 尿酸查什么项目| 绿本是什么| 小孩嘴唇发白是什么原因| 古人的婚礼在什么时候举行| 抗凝药是什么意思| 什么原因会引起胎停| 1月28日什么星座| 脾胃虚寒吃什么药好| 尿酸高会引起什么病| 般若波罗蜜是什么意思| 幽门螺旋杆菌是什么症状| 食积是什么意思| 太子龙男装什么档次| 煤油对人体有什么危害| 筝是什么意思| 测骨龄去医院挂什么科| 95什么意思| 得了阴虱用什么药能除根| 腹泻吃什么药见效最快| 11.23是什么星座| 实字五行属什么| pv是什么意思| 意面是什么做的| 今天什么日子老黄历| 淋巴结什么原因引起的| 嗓子疼有痰吃什么药| 叶凡为什么要找荒天帝| 绝倒是什么意思| 什么的荷叶| 走之底的字与什么有关| 喉咙吞口水痛吃什么药| 吃什么水果对皮肤好| 胃烧灼吃什么立马缓解| 怀孕做nt检查什么| 熠熠什么意思| 囊性灶是什么意思| 孕妇抽筋是什么原因引起的| 丘疹性荨麻疹吃什么药| 家门是什么意思| 骨折恢复期吃什么好| 淋巴结节吃什么药| 火字旁的有什么字| 士多店是什么意思| 碱性磷酸酶高吃什么药| 吃什么治疗便秘| 吃什么食物补阳气| 猫咪的胡须有什么作用| 手指头痒是什么原因| 慢阻肺吃什么药最有效| 为什么会有口臭| 什么的毛主席| 胃蛋白酶原1偏低是什么意思| 阿胶什么人不能吃| 牙齿是什么材质| kj是什么意思| 粉色裤子配什么上衣好看| 数字3代表什么意思| 解酒喝什么饮料| 考试穿什么颜色最吉利| 法国铁塔叫什么| 谢谢谬赞是什么意思| 肝肿瘤不能吃什么| 红细胞压积是什么意思| 发冷发热是什么原因| 楚楚欲动是什么意思| 半身不遂是什么意思| 月底是什么时候| 边什么边什么| 远水解不了近渴什么意思| 中午1点是什么时辰| 什么食物富含维生素b| 蜂蜜水有什么好处| 什么回忆| 夏枯草长什么样子| 为什么会拉水| 4月7号是什么星座| kor是什么意思| 送什么礼物给女老师| 港澳通行证办理需要什么材料| 甘是什么味道| 黄牛用的什么抢票软件| momo是什么意思| hpv12种高危型阳性是什么意思| 男人吃蚂蚱有什么好处| 包饺子剩下的面团能做什么| 林黛玉和贾宝玉是什么关系| 什么地飞| 尿味大是什么原因| 卵巢囊肿吃什么药| 芙蓉是什么花| 虚胖是什么意思| 为什么老是出汗| 北京有什么特产好吃| 睡觉腿麻是什么原因引起| 徒孙是什么意思| 什么时候进伏| 左眼皮跳跳好事要来到是什么歌| 老年人出现幻觉是什么原因| pm什么意思| 牛肉炒什么菜好吃| 福禄寿什么意思| 九点到十点是什么时辰| 胡萝卜不能和什么食物一起吃| 酒花是什么| 吃什么食物对肠胃好| 哺乳期发烧吃什么药| 藏红花泡水是什么颜色| 什么是玄关在哪个位置| 羊和什么相冲| 太阳绕着什么转| 惊什么万什么| 纪梵希为什么不娶赫本| 干呕是什么原因| 教育的本质是什么| 亚瑟士和鬼冢虎的区别是什么| 婚检女性检查什么项目| 反流性食管炎是什么病| 虹为什么是虫字旁| 红糖荷包蛋有什么功效| 润物细无声是什么意思| 白马王子是什么意思| 搪瓷杯为什么被淘汰了| 庚日是什么意思啊| 属虎的守护神是什么菩萨| 一什么房| b超回声不均匀是什么意思| 什么是血友病| 什么药一吃就哑巴了| 手足口疫苗什么时候打| 姑姑和我是什么关系| 什么是红眼病| 男性乳头疼是什么原因| 唐玄宗叫什么| 蚜虫长什么样| 彩色多普勒超声检查是什么| 斋醮什么意思| 绘本是什么| facebook是什么意思| 云南小黄姜有什么功效| 芙蓉花是什么花| 婴儿出汗多什么原因| 手术后吃什么补品好| 颈椎压迫神经手麻吃什么药| 什么是姜黄| 白酒优级和一级有什么区别| 治疗勃起困难有什么药| 子宫肥大有什么危害| 夜来非是什么意思| 缺什么补什么| 长痔疮有什么症状| 车仔面为什么叫车仔面| 炎是什么意思| 腿抽筋是什么原因引起的| 脂肪肝要注意什么| 女性血热吃什么好得快| 小混混是什么意思| 历史是个什么玩意儿| 福不唐捐什么意思| 来例假能吃什么水果| 人越来越瘦是什么原因| co是什么气体| 猪头肉炒什么好吃| 补气吃什么食物| 尿液里白细胞高是什么原因| o型血的父母是什么血型| fc什么意思| 红彤彤的什么| 邓紫棋属什么生肖| 什么叫白眼狼| 空调出现pl是什么意思| 苹果a1661是什么型号| 炖牛肉不能放什么调料| 什么是鼻息肉| 碧是什么颜色| 月出念什么| 阴唇为什么会变黑| 咸鱼翻身是什么意思| 三聚净戒是指什么戒| 异常子宫出血是什么原因| 肠衣是什么做的| 马太效应是什么意思| 养狗人容易得什么病| 习惯是什么意思| 佛手是什么东西| 陈皮是什么| 属实是什么意思| 什么的叫| 兔子尾巴像什么| 脑震荡有什么症状| 头晕吃什么药好| 局方是什么意思| 基础病是什么意思| 同房有什么姿势| 拉屎拉出血是什么原因| 百合什么时候种植最好| 农历七月初七俗称什么| 梦见在天上飞是什么意思| 指甲开裂是什么原因| 心电图低电压什么意思| b型血rh阳性是什么意思| 做肌电图挂什么科| 百度
Skip to main content

美媒:中国雪豹突击队表现优异 享有国际声誉

Document Type RFC - Proposed Standard (January 1997)
Obsoleted by RFC 2195
Was draft-klensin-cram (individual)
Authors Randy Catoe , Paul Krumviede , Dr. John C. Klensin
Last updated 2025-08-07
RFC stream Legacy
Formats
IESG Responsible AD (None)
Send notices to (None)
RFC 2095
百度 县委副书记、县长石强主持会议。
Network Working Group                                       J. Klensin
Request for Comments: 2095                                    R. Catoe
Category: Standards Track                                 P. Krumviede
                                                                   MCI
                                                          January 1997

       IMAP/POP AUTHorize Extension for Simple Challenge/Response

Status of this Memo

   This document specifies an Internet standards track protocol for the
   Internet community, and requests discussion and suggestions for
   improvements.  Please refer to the current edition of the "Internet
   Official Protocol Standards" (STD 1) for the standardization state
   and status of this protocol.  Distribution of this memo is unlimited.

Abstract

   While IMAP4 supports a number of strong authentication mechanisms as
   described in RFC 1731, it lacks any mechanism that neither passes
   cleartext, reusable passwords across the network nor requires either
   a significant security infrastructure or that the mail server update
   a mail-system-wide user authentication file on each mail access.
   This specification provides a simple challenge-response
   authentication protocol that is suitable for use with IMAP4.  Since
   it utilizes Keyed-MD5 digests and does not require that the secret be
   stored in the clear on the server, it may also constitute an
   improvement on APOP for POP3 use as specified in RFC 1734.

1. Introduction

   Existing Proposed Standards specify an AUTHENTICATE mechanism for the
   IMAP4 protocol [IMAP, IMAP-AUTH] and a parallel AUTH mechanism for
   the POP3 protocol [POP3-AUTH].  The AUTHENTICATE mechanism is
   intended to be extensible; the four methods specified in [IMAP-AUTH]
   are all fairly powerful and require some security infrastructure to
   support.  The base POP3 specification [POP3] also contains a
   lightweight challenge-response mechanism called APOP.  APOP is
   associated with most of the risks associated with such protocols: in
   particular, it requires that both the client and server machines have
   access to the shared secret in cleartext form. CRAM offers a method
   for avoiding such cleartext storage while retaining the algorithmic
   simplicity of APOP in using only MD5, though in a "keyed" method.

Klensin, Catoe & Krumviede  Standards Track                     [Page 1]
RFC 2095              IMAP/POP AUTHorize Extension          January 1997

   At present, IMAP [IMAP] lacks any facility corresponding to APOP.
   The only alternative to the strong mechanisms identified in [IMAP-
   AUTH] is a presumably cleartext username and password, supported
   through the LOGIN command in [IMAP].  This document describes a
   simple challenge-response mechanism, similar to APOP and PPP CHAP
   [PPP], that can be used with IMAP (and, in principle, with POP3).

   This mechanism also has the advantage over some possible alternatives
   of not requiring that the server maintain information about email
   "logins" on a per-login basis.  While mechanisms that do require such
   per-login history records may offer enhanced security, protocols such
   as IMAP, which may have several connections between a given client
   and server open more or less simultaneous, may make their
   implementation particularly challenging.

2. Challenge-Response Authentication Mechanism (CRAM)

   The authentication type associated with CRAM is "CRAM-MD5".

   The data encoded in the first ready response contains an
   presumptively arbitrary string of random digits, a timestamp, and the
   fully-qualified primary host name of the server.  The syntax of the
   unencoded form must correspond to that of an RFC 822 'msg-id'
   [RFC822] as described in [POP3].

   The client makes note of the data and then responds with a string
   consisting of the user name, a space, and a 'digest'.  The latter is
   computed by applying the keyed MD5 algorithm from [KEYED-MD5] where
   the key is a shared secret and the digested text is the timestamp
   (including angle-brackets).

   This shared secret is a string known only to the client and server.
   The `digest' parameter itself is a 16-octet value which is sent in
   hexadecimal format, using lower-case ASCII characters.

   When the server receives this client response, it verifies the digest
   provided.  If the digest is correct, the server should consider the
   client authenticated and respond appropriately.

   Keyed MD5 is chosen for this application because of the greater
   security imparted to authentication of short messages. In addition,
   the use of the techniques described in [KEYED-MD5] for precomputation
   of intermediate results make it possible to avoid explicit cleartext
   storage of the shared secret on the server system by instead storing
   the intermediate results which are known as "contexts".

Klensin, Catoe & Krumviede  Standards Track                     [Page 2]
RFC 2095              IMAP/POP AUTHorize Extension          January 1997

   CRAM does not support a protection mechanism.

   Example:

   The examples in this document show the use of the CRAM mechanism with
   the IMAP4 AUTHENTICATE command [IMAP-AUTH].  The base64 encoding of
   the challenges and responses is part of the IMAP4 AUTHENTICATE
   command, not part of the CRAM specification itself.

     S: * OK IMAP4 Server
     C: A0001 AUTHENTICATE CRAM-MD5
     S: + PDE4OTYuNjk3MTcwOTUyQHBvc3RvZmZpY2UucmVzdG9uLm1jaS5uZXQ+
     C: dGltIGI5MTNhNjAyYzdlZGE3YTQ5NWI0ZTZlNzMzNGQzODkw
     S: A0001 OK CRAM authentication successful

      In this example, the shared secret is the string
      'tanstaaftanstaaf'.  Hence, the Keyed MD5 digest is produced by
      calculating

        MD5((tanstaaftanstaaf XOR opad),
            MD5((tanstaaftanstaaf XOR ipad),
            <1896.697170952@postoffice.reston.mci.net>))

      where ipad and opad are as defined in the keyed-MD5 Work in
      Progress [KEYED-MD5] and the string shown in the challenge is the
      base64 encoding of <1896.697170952@postoffice.reston.mci.net>. The
      shared secret is null-padded to a length of 64 bytes. If the
      shared secret is longer than 64 bytes, the MD5 digest of the
      shared secret is used as a 16 byte input to the keyed MD5
      calculation.

      This produces a digest value (in hexadecimal) of

           b913a602c7eda7a495b4e6e7334d3890

      The user name is then prepended to it, forming

           tim b913a602c7eda7a495b4e6e7334d3890

      Which is then base64 encoded to meet the requirements of the IMAP4
      AUTHENTICATE command (or the similar POP3 AUTH command), yielding

           dGltIGI5MTNhNjAyYzdlZGE3YTQ5NWI0ZTZlNzMzNGQzODkw

Klensin, Catoe & Krumviede  Standards Track                     [Page 3]
RFC 2095              IMAP/POP AUTHorize Extension          January 1997

3. References

   [CHAP]  Lloyd, B., and W. Simpson, "PPP Authentication Protocols",
       RFC 1334, October 1992.

   [IMAP] Crispin, M., "Internet Message Access Protocol - Version
       4rev1", RFC 2060, University of Washington, December 1996.

   [IMAP-AUTH] Myers, J., "IMAP4 Authentication Mechanisms",
       RFC 1731, Carnegie Mellon, December 1994.

   [KEYED-MD5] Krawczyk, H., "HMAC-MD5: Keyed-MD5 for Message
       Authentication", Work in Progess.

   [MD5]  Rivest, R., "The MD5 Message Digest Algorithm",
       RFC 1321, MIT Laboratory for Computer Science, April 1992.

   [POP3] Myers, J., and M. Rose, "Post Office Protocol - Version 3",
       STD 53, RFC 1939, Carnegie Mellon, May 1996.

   [POP3-AUTH] Myers, J., "POP3 AUTHentication command", RFC 1734,
       Carnegie Mellon, December, 1994.

4. Security Considerations

   It is conjectured that use of the CRAM authentication mechanism
   provides origin identification and replay protection for a session.
   Accordingly, a server that implements both a cleartext password
   command and this authentication type should not allow both methods of
   access for a given user.

   While the saving, on the server, of "contexts" (see section 2) is
   marginally better than saving the shared secrets in cleartext as is
   required by CHAP [CHAP] and APOP [POP3], it is not sufficient to
   protect the secrets if the server itself is compromised.
   Consequently, servers that store the secrets or contexts must both be
   protected to a level appropriate to the potential information value
   in user mailboxes and identities.

   As the length of the shared secret increases, so does the difficulty
   of deriving it.

   While there are now suggestions in the literature that the use of MD5
   and keyed MD5 in authentication procedures probably has a limited
   effective lifetime, the technique is now widely deployed and widely
   understood.  It is believed that this general understanding may
   assist with the rapid replacement, by CRAM-MD5, of the current uses
   of permanent cleartext passwords in IMAP.   This document has been

Klensin, Catoe & Krumviede  Standards Track                     [Page 4]
RFC 2095              IMAP/POP AUTHorize Extension          January 1997

   deliberately written to permit easy upgrading to use SHA (or whatever
   alternatives emerge) when they are considered to be widely available
   and adequately safe.

   Even with the use of CRAM, users are still vulnerable to active
   attacks.  An example of an increasingly common active attack is 'TCP
   Session Hijacking' as described in CERT Advisory CA-95:01 [CERT95].

   See section 1 above for additional discussion.

5. Acknowledgements

   This memo borrows ideas and some text liberally from [POP3] and
   [RFC-1731] and thanks are due the authors of those documents.  Ran
   Atkinson made a number of valuable technical and editorial
   contributions to the document.

6. Authors' Addresses

   John C. Klensin
   MCI Telecommunications
   800 Boylston St, 7th floor
   Boston, MA 02199
   USA

   EMail: klensin@mci.net
   Phone: +1 617 960 1011

   Randy Catoe
   MCI Telecommunications
   2100 Reston Parkway
   Reston, VA 22091
   USA

   EMail: randy@mci.net
   Phone: +1 703 715 7366

   Paul Krumviede
   MCI Telecommunications
   2100 Reston Parkway
   Reston, VA 22091
   USA

   EMail: paul@mci.net
   Phone: +1 703 715 7251

Klensin, Catoe & Krumviede  Standards Track                     [Page 5]
邓超的老婆叫什么名字 尿素氮偏高是什么原因 九月二十二是什么星座 秋葵什么人不能吃 碳14呼气试验阳性是什么意思
火红的太阳像什么 minute什么意思 小孩嘴唇发白是什么原因 中药学专业学什么 血脂查什么项目
什么人吃天麻最好 钺读什么 黔驴技穷的意思是什么 肠胃湿热吃什么药 尿浑浊是什么病的前兆
心脏在乳房的什么位置 晚上咳嗽什么原因 为什么叫川普 胳膊上的花是打了什么疫苗 塞飞洛是什么档次的包
苏格兰牧羊犬吃什么hcv8jop0ns7r.cn 急性阴道炎是什么引起的hcv8jop6ns1r.cn 鱼死了有什么预兆xianpinbao.com 粘膜充血水肿什么意思hcv9jop0ns5r.cn 什么叫野鸡大学hcv8jop0ns0r.cn
股癣是什么样子的图片hcv8jop7ns6r.cn 脑梗死吃什么药hcv9jop4ns2r.cn 吃丝瓜有什么功效和作用weuuu.com 性生活频繁有什么危害hcv9jop3ns9r.cn 蛇最怕什么东西hcv9jop0ns4r.cn
排卵期后面是什么期hcv9jop6ns1r.cn 太妹是什么意思hcv8jop7ns8r.cn 龟龄集适合什么人吃hcv7jop6ns6r.cn 回族信奉什么教hcv8jop5ns0r.cn 鼻炎用什么药helloaicloud.com
割包皮有什么好处和坏处hcv9jop1ns8r.cn t是什么zsyouku.com 游泳前一定要做好什么运动hcv9jop6ns2r.cn 什么是走婚hcv8jop0ns9r.cn 疰夏是什么意思hcv9jop5ns5r.cn
百度