2020-10-05 15:32:45 +01:00
|
|
|
# base64
|
|
|
|
|
|
|
|
> Codifica e decodifica utilizzando la rappresentazione in base64.
|
2021-08-23 20:33:24 +01:00
|
|
|
> Maggiori informazioni: <https://www.unix.com/man-page/osx/1/base64/>.
|
2020-10-05 15:32:45 +01:00
|
|
|
|
|
|
|
- Codifica un file:
|
|
|
|
|
|
|
|
`base64 -i {{file_da_codificare}}`
|
|
|
|
|
|
|
|
- Decodifica un file:
|
|
|
|
|
2021-03-07 22:58:11 +00:00
|
|
|
`base64 --decode -i {{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
|
|
|
|
|
|
|
`echo -n {{testo_da_codificare}} | base64`
|
|
|
|
|
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`
|