.\" 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