diff --git a/pages.id/freebsd/base64.md b/pages.id/freebsd/base64.md new file mode 100644 index 0000000000..32bad097d3 --- /dev/null +++ b/pages.id/freebsd/base64.md @@ -0,0 +1,28 @@ +# base64 + +> Lakukan pengodean dan pendekodean terhadap suatu berkas atau `stdin` dari/menuju format Base64, menuju `stdout` atau berkas lainnya. +> Informasi lebih lanjut: . + +- Kodekan isi suatu berkas menuju format Base64, dan keluarkan hasil menuju `stdout`: + +`base64 {{-i|--input}} {{jalan/menuju/berkas}}` + +- Kodekan isi suatu berkas menuju format Base64, dan keluarkan hasil menuju suatu berkas luaran/output: + +`base64 {{-i|--input}} {{jalan/menuju/berkas_input}} {{-o|--output}} {{jalan/menuju/berkas_output}}` + +- Bungkus luaran Base64 dalam panjang karakter yang tetap (nilai `0` akan menonaktifkan pembungkusan): + +`base64 {{-b|--break}} {{0|76|...}} {{jalan/menuju/berkas}}` + +- Dekodekan kode Base64 yang tersimpan dalam suatu berkas, dan keluarkan hasil menuju `stdout`: + +`base64 {{-d|--decode}} {{-i|--input}} {{jalan/menuju/berkas}}` + +- Kodekan isi dari `stdin` menuju `stdout`: + +`{{perintah}} | base64` + +- Dekodekan kode Base64 yang berasal dari `stdin` menuju `stdout`: + +`{{perintah}} | base64 {{-d|--decode}}` diff --git a/pages.id/osx/base64.md b/pages.id/osx/base64.md new file mode 100644 index 0000000000..f36df08b2b --- /dev/null +++ b/pages.id/osx/base64.md @@ -0,0 +1,28 @@ +# base64 + +> Lakukan pengodean dan pendekodean terhadap suatu berkas atau `stdin` dari/menuju format Base64, menuju `stdout` atau berkas lainnya. +> Informasi lebih lanjut: . + +- Kodekan isi suatu berkas menuju format Base64, dan keluarkan hasil menuju `stdout`: + +`base64 {{-i|--input}} {{jalan/menuju/berkas}}` + +- Kodekan isi suatu berkas menuju format Base64, dan keluarkan hasil menuju suatu berkas luaran/output: + +`base64 {{-i|--input}} {{jalan/menuju/berkas_input}} {{-o|--output}} {{jalan/menuju/berkas_output}}` + +- Bungkus luaran Base64 dalam panjang karakter yang tetap (nilai `0` akan menonaktifkan pembungkusan): + +`base64 {{-b|--break}} {{0|76|...}} {{jalan/menuju/berkas}}` + +- Dekodekan kode Base64 yang tersimpan dalam suatu berkas, dan keluarkan hasil menuju `stdout`: + +`base64 {{-d|--decode}} {{-i|--input}} {{jalan/menuju/berkas}}` + +- Kodekan isi dari `stdin` menuju `stdout`: + +`{{perintah}} | base64` + +- Dekodekan kode Base64 yang berasal dari `stdin` menuju `stdout`: + +`{{perintah}} | base64 {{-d|--decode}}` diff --git a/pages/freebsd/base64.md b/pages/freebsd/base64.md new file mode 100644 index 0000000000..db89840790 --- /dev/null +++ b/pages/freebsd/base64.md @@ -0,0 +1,28 @@ +# base64 + +> Encode or decode file or `stdin` to/from base64, to `stdout` or another file. +> More information: . + +- Encode a file to `stdout`: + +`base64 {{-i|--input}} {{path/to/file}}` + +- Encode a file to the specified output file: + +`base64 {{-i|--input}} {{path/to/input_file}} {{-o|--output}} {{path/to/output_file}}` + +- Wrap encoded output at a specific width (`0` disables wrapping): + +`base64 {{-b|--break}} {{0|76|...}} {{path/to/file}}` + +- Decode a file to `stdout`: + +`base64 {{-d|--decode}} {{-i|--input}} {{path/to/file}}` + +- Encode from `stdin` to `stdout`: + +`{{command}} | base64` + +- Decode from `stdin` to `stdout`: + +`{{command}} | base64 {{-d|--decode}}` diff --git a/pages/osx/base64.md b/pages/osx/base64.md index 3458eaff79..67193294b1 100644 --- a/pages/osx/base64.md +++ b/pages/osx/base64.md @@ -1,20 +1,28 @@ # base64 -> Encode and decode using Base64 representation. +> Encode or decode file or `stdin` to/from base64, to `stdout` or another file. > More information: . -- Encode a file: +- Encode a file to `stdout`: -`base64 --input={{plain_file}}` +`base64 {{-i|--input}} {{path/to/file}}` -- Decode a file: +- Encode a file to the specified output file: -`base64 --decode --input={{base64_file}}` +`base64 {{-i|--input}} {{path/to/input_file}} {{-o|--output}} {{path/to/output_file}}` -- Encode from `stdin`: +- Wrap encoded output at a specific width (`0` disables wrapping): -`echo -n "{{plain_text}}" | base64` +`base64 {{-b|--break}} {{0|76|...}} {{path/to/file}}` -- Decode from `stdin`: +- Decode a file to `stdout`: -`echo -n {{base64_text}} | base64 --decode` +`base64 {{-d|--decode}} {{-i|--input}} {{path/to/file}}` + +- Encode from `stdin` to `stdout`: + +`{{command}} | base64` + +- Decode from `stdin` to `stdout`: + +`{{command}} | base64 {{-d|--decode}}`