2020-10-13 00:09:40 +02:00
|
|
|
# base64
|
|
|
|
|
2024-01-04 15:13:11 +01:00
|
|
|
> Encodeer of decodeer een bestand of `stdin` van/naar Base64 naar `stdout`.
|
2024-09-24 22:10:33 +07:00
|
|
|
> Meer informatie: <https://manned.org/base64>.
|
2020-10-13 00:09:40 +02:00
|
|
|
|
2024-01-04 15:13:11 +01:00
|
|
|
- Encodeer een bestand:
|
2020-10-13 00:09:40 +02:00
|
|
|
|
2024-09-24 22:10:33 +07:00
|
|
|
`base64 {{pad/naar/bestand}}`
|
2020-10-13 00:09:40 +02:00
|
|
|
|
2024-03-18 20:06:30 +01:00
|
|
|
- Zet gecodeerde uitvoer naar een specifieke breedte (`0` schakelt het uit):
|
|
|
|
|
2024-09-24 22:10:33 +07:00
|
|
|
`base64 {{-w|--wrap}} {{0|76|...}} {{pad/naar/bestand}}`
|
2024-03-18 20:06:30 +01:00
|
|
|
|
2020-10-13 00:09:40 +02:00
|
|
|
- Decodeer een bestand:
|
|
|
|
|
2024-09-24 22:10:33 +07:00
|
|
|
`base64 {{-d|--decode}} {{pad/naar/bestand}}`
|
2020-10-13 00:09:40 +02:00
|
|
|
|
2024-01-04 15:13:11 +01:00
|
|
|
- Encodeer `stdin`:
|
2020-10-13 00:09:40 +02:00
|
|
|
|
2024-09-24 22:10:33 +07:00
|
|
|
`{{commando}} | base64`
|
2020-10-13 00:09:40 +02:00
|
|
|
|
2023-07-02 06:12:01 -07:00
|
|
|
- Decodeer `stdin`:
|
2020-10-13 00:09:40 +02:00
|
|
|
|
2024-09-24 22:10:33 +07:00
|
|
|
`{{commando}} | base64 {{-d|--decode}}`
|