2019-01-23 23:06:04 +01:00
|
|
|
# base64
|
|
|
|
|
|
|
|
> Codifica o decodifica file o standard input in Base64 su standard output.
|
2024-09-24 22:10:33 +07:00
|
|
|
> Maggiori informazioni: <https://manned.org/base64>.
|
2019-01-23 23:06:04 +01:00
|
|
|
|
|
|
|
- Codifica un file:
|
|
|
|
|
2024-09-24 22:10:33 +07:00
|
|
|
`base64 {{percoso/del/file}}`
|
|
|
|
|
|
|
|
- Avvolgi l'output codificato a una larghezza specifica (`0` disabilita l'avvolgimento):
|
|
|
|
|
|
|
|
`base64 {{-w|--wrap}} {{0|76|...}} {{percoso/del/file}}`
|
2019-01-23 23:06:04 +01:00
|
|
|
|
|
|
|
- Decodifica un file:
|
|
|
|
|
2024-09-24 22:10:33 +07:00
|
|
|
`base64 {{-d|--decode}} {{percoso/del/file}}`
|
2019-01-23 23:06:04 +01:00
|
|
|
|
2023-07-02 06:12:01 -07:00
|
|
|
- Codifica da `stdin`:
|
2019-01-23 23:06:04 +01:00
|
|
|
|
|
|
|
`{{comando}} | base64`
|
|
|
|
|
2023-07-02 06:12:01 -07:00
|
|
|
- Decodifica da `stdin`:
|
2019-01-23 23:06:04 +01:00
|
|
|
|
2024-09-24 22:10:33 +07:00
|
|
|
`{{comando}} | base64 {{-d|--decode}}`
|