摘要和基本身份验证有什么区别? [英] What is the difference between Digest and Basic Authentication?

查看:34
本文介绍了摘要和基本身份验证有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

摘要基本认证有什么区别?

推荐答案

摘要式身份验证通过将哈希函数应用于以下内容以加密形式传达凭据:用户名、密码、服务器提供的 nonce 值、HTTP 方法和请求的URI.

Digest Authentication communicates credentials in an encrypted form by applying a hash function to: the username, the password, a server supplied nonce value, the HTTP method and the requested URI.

而基本身份验证使用非加密 base64 编码.

Whereas Basic Authentication uses non-encrypted base64 encoding.

因此,一般只应在提供传输层安全性(例如 https)的情况下使用基本身份验证.

Therefore, Basic Authentication should generally only be used where transport layer security is provided such as https.

请参阅 RFC-2617 了解所有详细信息.

See RFC-2617 for all the gory details.

这篇关于摘要和基本身份验证有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆