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