windows 什么是base64明文用户名和密码?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1386112/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is base64 clear text username and password?
提问by pointlesspolitics
Recently I came across this word in a basic authentication article. What it meant by base64 clear text usrname and password on the network?
最近我在一篇基本的身份验证文章中遇到了这个词。网络上的base64明文用户名和密码是什么意思?
Thanks
谢谢
回答by pjp
It means encoding the username and password using base 64. The result won't look too much like your username and password but it's pretty easy to reverse the operation to get the plain text.
这意味着使用 base 64 对用户名和密码进行编码。结果看起来不会太像您的用户名和密码,但是很容易反转操作以获取纯文本。
See here for details on base 64 encoding
有关 base 64 编码的详细信息,请参见此处
http://en.wikipedia.org/wiki/Base64
http://en.wikipedia.org/wiki/Base64
For example the string password
encoded in base 64 is cGFzc3dvcmQ=
例如,password
以 base 64 编码的字符串是cGFzc3dvcmQ=
This online tool can encode/decode base 64 for you http://www.motobit.com/util/base64-decoder-encoder.asp
这个在线工具可以为你编码/解码 base 64 http://www.motobit.com/util/base64-decoder-encoder.asp
回答by ZZ Coder
In HTTP Basic authentication, the "password:username" is encoded in Base64. Since it's not encrypted, it's cleartext.
在 HTTP 基本身份验证中,“密码:用户名”以 Base64 编码。因为没有加密,所以是明文。
Here is a sample Authorization header,
这是一个示例授权标头,
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
Where dXNlcm5hbWU6cGFzc3dvcmQ=
is Base64-encoded "username:password"
(literally).
dXNlcm5hbWU6cGFzc3dvcmQ=
Base64 编码在哪里"username:password"
(字面意思)。
回答by ceejayoz
Base 64 encoding (Wikipedia article)turns "This is my password.
" into:
Base 64 编码(维基百科文章)将“ This is my password.
”变成:
VGhpcyBpcyBteSBwYXNzd29yZC4=
It's easily recognizable and entirely reversible, so its entirely insecure.
它很容易识别并且完全可逆,所以它完全不安全。
回答by Mark Redman
This means that the username and password is not encrypted (ie clear text) The text is just base 64 encoded for transporting and can easily be decoded.
这意味着用户名和密码没有加密(即明文)。文本只是 base 64 编码用于传输并且可以轻松解码。
回答by Cogwheel
Base64 is a way to deliver binary data through a connection (or file) that limits what characters are allowed to be included. For example, e-mail attachments are encoded in base64 because the e-mail protocol only allows for plain text in an e-mail message.
Base64 是一种通过连接(或文件)传递二进制数据的方法,该连接(或文件)限制了允许包含的字符。例如,电子邮件附件以 base64 编码,因为电子邮件协议只允许在电子邮件消息中使用纯文本。
See the wikipedia page for more http://en.wikipedia.org/wiki/Base64
有关更多信息,请参阅维基百科页面http://en.wikipedia.org/wiki/Base64