.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5. .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH BASENC 1 2022年9月 "GNU coreutils 9.1" 使用者命令 .SH 名稱 basenc \- 編碼/解碼資料並輸出至標準輸出 .SH 概述 \fBbasenc\fP [\fI\,選項\/\fP]... [\fI\,檔案\/\fP] .SH 描述 .\" Add any additional description here .PP basenc 可以編碼/解碼檔案或標準輸入輸出。 .PP 如果沒有指定檔案,或者指定檔案為“\-”,則從標準輸入讀取。 .PP 必選引數對長短選項同時適用。 .TP \fB\-\-base64\fP 與 'base64' 程式相同(RFC4648 section 4) .TP \fB\-\-base64url\fP 檔案安全和 url 安全的 base64(RFC4648 section 5) .TP \fB\-\-base32\fP 與 'base32' 程式相同(RFC4648 section 6) .TP \fB\-\-base32hex\fP 擴充套件的十六進位制(hex)字母表 base32(RFC4648 section 7) .TP \fB\-\-base16\fP 十六進位制(hex)編碼(RFC4648 section 8) .TP \fB\-\-base2msbf\fP 位字串,最高位(msb)最先 .TP \fB\-\-base2lsbf\fP 位字串,最低位(lsb)最先 .TP \fB\-d\fP, \fB\-\-decode\fP 解碼資料 .TP \fB\-i\fP, \fB\-\-ignore\-garbage\fP 解碼時忽略非字母字元 .TP \fB\-w\fP, \fB\-\-wrap\fP=\fI\,字元數\/\fP 在指定的字元數後自動換行(預設為76),0 為禁用自動換行 .TP \fB\-\-z85\fP 類似 ascii85 的編碼(ZeroMQ 標準:32/Z85);編碼時,輸入長度必須是 4 的倍數;解碼時,輸入長度必須是 5 的倍數; .TP \fB\-\-help\fP 顯示此幫助資訊並退出 .TP \fB\-\-version\fP 顯示版本資訊並退出 .PP 解碼時,輸入資料(編碼流)可能包含一些換行符,以及不在有效字元範圍之內的字元。可以嘗試用 \fB\-\-ignore\-garbage\fP 選項來繞過編碼流中的無效字元。 .SH 編碼示例 .PP .nf .RS $ printf '\e376\e117\e202' | basenc \-\-base64 /k+C $ printf '\e376\e117\e202' | basenc \-\-base64 /k+C $ printf '\e376\e117\e202' | basenc \-\-base32 7ZHYE=== $ printf '\e376\e117\e202' | basenc \-\-base32hex VP7O4=== $ printf '\e376\e117\e202' | basenc \-\-base16 FE4F82 $ printf '\e376\e117\e202' | basenc \-\-base2lsbf 011111111111001001000001 $ printf '\e376\e117\e202' | basenc \-\-base2msbf 111111100100111110000010 $ printf '\e376\e117\e202\e000' | basenc \-\-z85 @.FaC .RE .fi .SH 作者 由 Simon Josefsson 和 Assaf Gordon 編寫。 .SH 報告錯誤 GNU coreutils 的線上幫助: .br 請向 報告翻譯錯誤。 .SH 版權 Copyright \(co 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . .br This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. .SH 參見 完整文件請見: .br 或者在本地使用: info \(aq(coreutils) basenc invocation\(aq .SH "跋" .br 本頁面中文版由中文 man 手冊頁計劃提供。 .br 中文 man 手冊頁計劃:\fBhttps://github.com/man-pages-zh/manpages-zh\fR