What is base64 clear text username and password?

淺唱寂寞╮ 提交于 2019-12-05 02:08:53

问题


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


回答1:


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




回答2:


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).




回答3:


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

VGhpcyBpcyBteSBwYXNzd29yZC4=

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




回答4:


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.




回答5:


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



来源:https://stackoverflow.com/questions/1386112/what-is-base64-clear-text-username-and-password

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!