Value = username:password
Encoded Value = base64(Value)
Authorization Value = Basic <Encoded Value>
//at last Authorization key/value map added to http header as follows
Authorization: <Authorization Value>
< p > HTTP文摘访问认证
摘要访问认证使用哈希(i。E文摘是指切成小块)的方法来生成加密结果。HTTP文摘访问认证是一种更复杂的认证形式,其工作原理如下: