如何识别HTTPS标头中的加密类型

时间:2015-02-05 06:23:07

标签: encoding https

我正在尝试编写一个python脚本来获取URL。问题是此URI位于身份验证层之后。当我使用chrome developer查看手动发布的auth标头时,我得到以下内容

Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Authorization:Negotiate TlRMTVNTUAADAAAAGAAYAIAAAABaAVoBmAAAAAAAAABYAAAADgAOAFgAAAAaABoAZgAAABAAEADyAQAAFYKI4gYC8CMAAAAPaCglBT2Lv1jjSV8VzUUdJXUAMwA1ADAAOQAzADIAVgBBAFcAUwBCAEEAVABDAEgANAAwADAANAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC4ZTWwTHQ+Gd56bupLHtvSAQEAAAAAAABacsFaBkHQARwuYZJSWo9rAAAAAAIABgBJAE4AVAABABYAUABCAE4ARQBEAFMAVAA0ADAAMAAxAAQAGABpAG4AdAAuAEMAbwByAHAALgBzAHUAbgADADAAUABCAE4ARQBEAFMAVAA0ADAAMAAxAC4AaQBuAHQALgBDAG8AcgBwAC4AcwB1AG4ABQAQAEMAbwByAHAALgBzAHUAbgAHAAgAWnLBWgZB0AEGAAQAAgAAAAgAMAAwAAAAAAAAAAAAAAAAMAAA2HnDpoqY6RR8r8EiiOozj/V91L5chiKFa/xsZ6zWK0IKABAAAAAAAAAAAAAAAAAAAAAAAAkAOgBIAFQAVABQAC8AcABiAG4AZQBkAHMAdAA0ADAAMAAxAC4AaQBuAHQALgBjAG8AcgBwAC4AcwB1AG4AAAAAAAAAAAAAAAAAhataN+VXJU5f92chg79RQA==
Connection:keep-alive
Host:xxx
User-Agent:Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36

我的问题是:

如何确定此邮件标题中“授权”字段中使用的编码类型?

1 个答案:

答案 0 :(得分:1)

这是一个Base64编码的字符串。您可以轻松识别这样的字符串,因为它最后只能包含字母,数字,+,/和=。

如果您对其进行解码,则以NTLMSSP开头。