Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- yum
- C
- centos 7.5
- docker
- log
- GNOME
- rsyslog
- RHEL
- K8S
- Shell
- CentOS
- 파이썬
- audit
- Elasticsearch
- 크롬
- Elk
- Chrome
- 디렉토리
- zabbix
- Linux
- Audit Log
- JSON
- PostgreSQL
- Kubernetes
- 서울시민카드
- GPU
- Python
- bash
- 빅데이터
- syslog
Archives
- Today
- Total
목록base64 (1)
Sysops Notepad
[Python] base64 인코딩/디코팅 하는법
import base64 def stringToBase64(a): return base64.b64encode(a.encode('utf-8')) def base64ToString(b): return base64.b64decode(b).decode('utf-8') def fileToBase64(filepath): fp = open(filepath, "rb") data = fp.read() fp.close() return base64.b64encode(data).decode('utf-8')
업무/dev
2019. 2. 15. 17:43