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