Man page - basenc(1)

Packages contains this manual

Available languages:

en fr es pl nb da tr sv ja ru ro zh_TW sr zh_CN de

Manual

BASENC

名 稱
概 述
描 述
編 碼 示 例
作 者
報 告 錯 誤
版 權
參 見


名 稱

basenc - 編 碼 /解 碼 資 料 並 輸 出 至 標 準 輸 出

概 述

basenc [ 選 項 ]... [ 檔 案 ]

描 述

basenc 可 以 編 碼 /解 碼 檔 案 或 標 準 輸 入 輸 出 。

如 果 沒 有 指 定 檔 案 , 或 者 指 定 檔 案 為 “-”, 則 從 標 準 輸 入 讀 取 。

必 選 引 數 對 長 短 選 項 同 時 適 用 。
--base64

與 ’base64’ 程 式 相 同 ( RFC4648 section 4)

--base64url

檔 案 安 全 和 url 安 全 的 base64( RFC4648 section 5)

--base32

與 ’base32’ 程 式 相 同 ( RFC4648 section 6)

--base32hex

擴 充 套 件 的 十 六 進 位 制 ( hex) 字 母 表 base32( RFC4648 section 7)

--base16

十 六 進 位 制 ( hex) 編 碼 ( RFC4648 section 8)

--base2msbf

位 字 串 , 最 高 位 ( msb) 最 先

--base2lsbf

位 字 串 , 最 低 位 ( lsb) 最 先

-d , --decode

解 碼 資 料

-i , --ignore-garbage

解 碼 時 忽 略 非 字 母 字 元

-w , --wrap = 字 元 數

在 指 定 的 字 元 數 後 自 動 換 行 (預 設 為 76), 0 為 停 用 自 動 換 行

--z85

類 似 ascii85 的 編 碼 ( ZeroMQ 標 準 : 32/Z85) ; 編 碼 時 , 輸 入 長 度 必 須 是 4 的 倍 數 ; 解 碼 時 , 輸 入 長 度 必 須 是 5 的 倍 數 ;

--help

顯 示 此 幫 助 資 訊 並 退 出

--version

顯 示 版 本 資 訊 並 退 出

解 碼 時 , 輸 入 資 料 ( 編 碼 流 ) 可 能 包 含 一 些 換 行 符 , 以 及 不 在 有 效 字 元 範 圍 之 內 的 字 元 。 可 以 嘗 試 用 --ignore-garbage 選 項 來 繞 過 編 碼 流 中 的 無 效 字 元 。

編 碼 示 例

$ printf ’\376\117\202’ | basenc --base64
/k+C

$ printf ’\376\117\202’ | basenc --base64
/k+C

$ printf ’\376\117\202’ | basenc --base32
7ZHYE===

$ printf ’\376\117\202’ | basenc --base32hex
VP7O4===

$ printf ’\376\117\202’ | basenc --base16
FE4F82

$ printf ’\376\117\202’ | basenc --base2lsbf
011111111111001001000001

$ printf ’\376\117\202’ | basenc --base2msbf
111111100100111110000010

$ printf ’\376\117\202\000’ | basenc --z85
@.FaC

作 者

由 Simon Josefsson 和 Assaf Gordon 編 寫 。

報 告 錯 誤

GNU coreutils 的 線 上 幫 助 : <https://www.gnu.org/software/coreutils/>
請 向 <https://translationproject.org/team/zh_CN.html> 報 告 翻 譯 錯 誤 。

版 權

Copyright © 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

參 見

完 整 文 件 請 見 : <https://www.gnu.org/software/coreutils/basenc>
或 者 在 本 地 使 用 : info '(coreutils) basenc invocation'

本 頁 面 中 文 版 由 中 文 man 手 冊 頁 計 劃 提 供 。
中 文 man 手 冊 頁 計 劃 : https://github.com/man-pages-zh/manpages-zh