2020-10-05 16:32:45 +02:00
|
|
|
# base64
|
|
|
|
|
|
|
|
> Codifica e decodifica utilizzando la rappresentazione in base64.
|
2025-04-30 10:16:11 -07:00
|
|
|
> Maggiori informazioni: <https://keith.github.io/xcode-man-pages/bintrans.1>.
|
2020-10-05 16:32:45 +02:00
|
|
|
|
|
|
|
- Codifica un file:
|
|
|
|
|
2025-03-07 20:49:30 +02:00
|
|
|
`base64 {{[-i|--input]}} {{file_da_codificare}}`
|
2020-10-05 16:32:45 +02:00
|
|
|
|
|
|
|
- Decodifica un file:
|
|
|
|
|
2025-03-07 20:49:30 +02:00
|
|
|
`base64 {{[-d|--decode]}} {{[-i|--input]}} {{file_da_decodificare}}`
|
2020-10-05 16:32:45 +02:00
|
|
|
|
2023-07-02 06:12:01 -07:00
|
|
|
- Codifica da `stdin`:
|
2020-10-05 16:32:45 +02:00
|
|
|
|
2023-12-29 17:48:46 +01:00
|
|
|
`echo -n "{{testo_da_codificare}}" | base64`
|
2020-10-05 16:32:45 +02:00
|
|
|
|
2023-07-02 06:12:01 -07:00
|
|
|
- Decodifica da `stdin`:
|
2020-10-05 16:32:45 +02:00
|
|
|
|
2025-03-07 20:49:30 +02:00
|
|
|
`echo -n {{testo_da_decodificare}} | base64 {{[-d|--decode]}}`
|