mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-19 22:35:32 +02:00
20 lines
480 B
Markdown
20 lines
480 B
Markdown
# base64
|
|
|
|
> Codifica e decodifica utilizzando la rappresentazione in base64.
|
|
> Maggiori informazioni: <https://keith.github.io/xcode-man-pages/bintrans.1>.
|
|
|
|
- Codifica un file:
|
|
|
|
`base64 {{[-i|--input]}} {{file_da_codificare}}`
|
|
|
|
- Decodifica un file:
|
|
|
|
`base64 {{[-d|--decode]}} {{[-i|--input]}} {{file_da_decodificare}}`
|
|
|
|
- Codifica da `stdin`:
|
|
|
|
`echo -n "{{testo_da_codificare}}" | base64`
|
|
|
|
- Decodifica da `stdin`:
|
|
|
|
`echo -n {{testo_da_decodificare}} | base64 {{[-d|--decode]}}`
|