| | 1 | = 2019-09-24 = |
| | 2 | |
| | 3 | == base64 == |
| | 4 | |
| | 5 | * Objective: create Base64 encoded "username:password" string for JIRA API |
| | 6 | * https://developer.atlassian.com/server/jira/platform/basic-authentication/ |
| | 7 | * Reference: |
| | 8 | * [1] https://www.base64encode.net/python-base64-b64encode |
| | 9 | * [2] https://github.com/base64encode/examples/blob/master/base64encode.py |
| | 10 | * [3] https://superuser.com/questions/120796/how-to-encode-base64-via-command-line |
| | 11 | {{{ |
| | 12 | #!sh |
| | 13 | echo -n "abc" | openssl base64 |
| | 14 | }}} |
| | 15 | {{{ |
| | 16 | #!python |
| | 17 | import base64 |
| | 18 | print base64.b64encode "abc" |
| | 19 | }}} |