tldr/pages.fr/common/base64.md

21 lines
428 B
Markdown
Raw Normal View History

2019-10-18 15:00:35 +01:00
# base64
> Encoder ou décoder un fichier ou l'entrée standard en utilisant le codage Base64 à destination de la sortie standard.
> Plus d'informations : <https://www.gnu.org/software/coreutils/base64>.
2019-10-18 15:00:35 +01:00
- Encode un fichier :
2019-10-18 15:00:35 +01:00
`base64 {{fichier}}`
- Décode un fichier :
2019-10-18 15:00:35 +01:00
2021-03-07 22:58:11 +00:00
`base64 --decode {{fichier}}`
2019-10-18 15:00:35 +01:00
- Encode depuis `stdin` :
2019-10-18 15:00:35 +01:00
`{{une_commande}} | base64`
- Décode depuis `stdin` :
2019-10-18 15:00:35 +01:00
2021-03-07 22:58:11 +00:00
`{{une_commande}} | base64 --decode`