← 返回命令列表

Linux command

basenc 命令

网络

需要网络或远程资源。

常用示例

Encode

basenc --base64 [file]

Encode

basenc --base32 [file]

Decode

basenc --base64 -d [file.b64]

Example

basenc --base16 [file]

Example

basenc --base2 [file]

说明

basenc is a unified encoding/decoding tool supporting multiple base encodings including base64, base32, base16 (hex), base2 (binary), z85, and others. It consolidates functionality previously split across multiple tools. The tool is part of GNU coreutils and provides a single interface for various encoding schemes.

参数

--base64
Base64 encoding
--base64url
Base64 URL-safe encoding
--base32
Base32 encoding
--base32hex
Base32 with extended hex alphabet
--base16
Base16 (hexadecimal)
--base2lsbf
Base2 (binary) least significant bit first
--base2msbf
Base2 (binary) most significant bit first
--z85
Z85 encoding (ZeroMQ)
-d, --decode
Decode data
-w, --wrap=_cols_
Wrap lines at width
-i, --ignore-garbage
Ignore non-alphabet characters

FAQ

What is the basenc command used for?

basenc is a unified encoding/decoding tool supporting multiple base encodings including base64, base32, base16 (hex), base2 (binary), z85, and others. It consolidates functionality previously split across multiple tools. The tool is part of GNU coreutils and provides a single interface for various encoding schemes.

How do I run a basic basenc example?

Run `basenc --base64 [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --base64 do in basenc?

Base64 encoding