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
- 디렉토리
- rsyslog
- 크롬
- PostgreSQL
- 파이썬
- Audit Log
- 빅데이터
- GNOME
- docker
- Elasticsearch
- 서울시민카드
- yum
- centos 7.5
- K8S
- Kubernetes
- CentOS
- log
- JSON
- zabbix
- syslog
- Shell
- GPU
- C
- audit
- RHEL
- Linux
- Chrome
- bash
- Elk
- Python
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