2020-10-05 16:32:45 +02:00
|
|
|
# base64
|
|
|
|
|
|
|
|
> Codifica e decodifica utilizzando la rappresentazione in base64.
|
2024-01-31 07:20:27 -03:00
|
|
|
> Maggiori informazioni: <https://keith.github.io/xcode-man-pages/base64.1.html>.
|
2020-10-05 16:32:45 +02:00
|
|
|
|
|
|
|
- Codifica un file:
|
|
|
|
|
2023-12-29 17:48:46 +01:00
|
|
|
`base64 --input={{file_da_codificare}}`
|
2020-10-05 16:32:45 +02:00
|
|
|
|
|
|
|
- Decodifica un file:
|
|
|
|
|
2023-12-29 17:48:46 +01:00
|
|
|
`base64 --decode --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
|
|
|
|
2021-03-07 23:58:11 +01:00
|
|
|
`echo -n {{testo_da_decodificare}} | base64 --decode`
|