什么是 Base64 明文用户名和密码?

发布于 2024-08-03 13:14:21 字数 64 浏览 3 评论 0原文

最近我在一篇基础认证文章中看到了这个词。网络上的 Base64 明文用户名和密码意味着什么?

谢谢

Recently I came across this word in a basic authentication article. What it meant by base64 clear text usrname and password on the network?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

我还不会笑 2024-08-10 13:14:21

在 HTTP 基本身份验证中,“密码:用户名”以 Base64 编码。由于它没有加密,所以它是明文的。

下面是一个授权标头示例,

Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=

其中 dXNlcm5hbWU6cGFzc3dvcmQ= 是 Base64 编码的 "username:password" (字面意思)。

In HTTP Basic authentication, the "password:username" is encoded in Base64. Since it's not encrypted, it's cleartext.

Here is a sample Authorization header,

Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=

Where dXNlcm5hbWU6cGFzc3dvcmQ= is Base64-encoded "username:password" (literally).

难忘№最初的完美 2024-08-10 13:14:21

这意味着使用 Base 64 对用户名和密码进行编码。结果看起来不太像您的用户名和密码,但很容易反转操作以获取纯文本。

有关 Base 64 编码的详细信息,请参阅此处

http://en.wikipedia.org/wiki/Base64

例如,以 Base 64 编码的字符串 passwordcGFzc3dvcmQ=

此在线工具可以为您编码/解码 Base 64 http://www.motobit.com/util/base64-decoder-encoder.asp

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.

See here for details on base 64 encoding

http://en.wikipedia.org/wiki/Base64

For example the string password encoded in base 64 is cGFzc3dvcmQ=

This online tool can encode/decode base 64 for you http://www.motobit.com/util/base64-decoder-encoder.asp

私野 2024-08-10 13:14:21

Base 64 编码(维基百科文章) 变成“这是我的密码。 ” 成:

VGhpcyBpcyBteSBwYXNzd29yZC4=

它很容易识别并且完全可逆,因此它完全不安全。

Base 64 encoding (Wikipedia article) turns "This is my password." into:

VGhpcyBpcyBteSBwYXNzd29yZC4=

It's easily recognizable and entirely reversible, so its entirely insecure.

紫罗兰の梦幻 2024-08-10 13:14:21

这意味着用户名和密码未加密(即明文)。文本只是用于传输的 Base 64 编码,并且可以轻松解码。

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.

无悔心 2024-08-10 13:14:21

Base64 是一种通过连接(或文件)传送二进制数据的方法,它限制了允许包含的字符。例如,电子邮件附件以 Base64 进行编码,因为电子邮件协议仅允许电子邮件中包含纯文本。

有关更多信息,请参阅维基百科页面 http://en.wikipedia.org/wiki/Base64

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.

See the wikipedia page for more http://en.wikipedia.org/wiki/Base64

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文