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