base编码

1-    Base64是网bai络上最常见的用于传输8Bit 字节代码的du编码方式之一,在发送电子邮件时zhi,服务器认证dao的用户名和密码需要用Base64编码,附件也需要用Base64编码。

2-    王馨瑶546L6aao55G2

20201215  MjAyMDEyMTU=

3-To run a command as administrator (user "root"), use "sudo <command>".

See "man sudo_root" for details.

 

wxy@ubuntu:~$ python3

Python 3.8.2 (default, Mar 13 2020, 10:14:16)

[GCC 9.3.0] on linux

Type "help", "copyright", "credits" or "license" for more information.

>>> import base64

>>> plaintext="wangxinyao"

>>> s=base64.b64encode(plaintext.encode())

>>> print(s)

b'd2FuZ3hpbnlhbw=='

posted @ 2020-10-18 18:10  20201215王馨瑶  阅读(130)  评论(1编辑  收藏  举报