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