百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

dtool

> 编程语言
开源

一个用于帮助以 Rust 编写的开发的命令行工具集合

379 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个用于帮助以 Rust 编写的开发的命令行工具集合

dtool

dtool is a command-line tool collection to assist development

Table of Contents

  • Description
  • Usage
    • Tips
  • Installation

Description

Now dtool supports:

  • Hex / UTF-8 string / binary / byte array conversion
  • Timestamp / date conversion
  • Number 10/2/8/16 base conversion
  • Hex / base32 conversion
  • Hex / base58 conversion
  • Hex / base64 conversion
  • URL encode / decode
  • Number codec
  • Hash (MD5, SHA-1, SHA-2, SHA-3, RIPEMD, CRC, Blake2b, Blake3, SM3, Twox)
  • UTF-8 string / unicode conversion
  • HTML entity encode / decode
  • Regex match
  • Pbkdf2
  • Case conversion (upper, lower, title, camel, pascal, snake, shouty snake, kebab, sarcasm)
  • AES encrypt / decrypt
  • ECDSA (Secp256k1, NIST P-256, NIST P-384, SM2)
  • SM4 encrypt / decrypt
  • EdDSA (Ed25519)
  • sr25519 signature
  • QR code convertion and scaning
  • JWT encode / decode / verify
  • UUID generation and parsing

Usage

dtool does different works by different sub commands:

Sub command Desc Example
h2s Convert hex to UTF-8 string
v0.1.0 $ dtool h2s 0x61626364
abcd
s2h Convert UTF-8 string to hex
v0.1.0 $ dtool s2h abcd
0x61626364
h2b Convert hex to binary
v0.1.0 $ dtool h2b 0x61626364
abcd
b2h Convert binary to hex
v0.1.0 $ dtool b2h abcd
0x61626364
...

View full usage document

  • Besides the sub command help, dtool provides a sub command usage to show examples:
$ dtool usage
Usage
----------------------------------------------------------
 h2s  Convert hex to UTF-8 string  $ dtool h2s 0x61626364 
      v0.1.0                       abcd 
----------------------------------------------------------
...
  • You can search usage with a keyword:
$ dtool usage -s md5
Usage
-------------------------------------------------------
 hash  Hex to hash  $ dtool hash -a md5 0x616263 
       MD5          0x900150983cd24fb0d6963f7d28e17f72 
       v0.2.0        
-------------------------------------------------------

Tips

pipe

convert a string to base64

$ echo -n abc | dtool s2h | dtool h2b64
YWJj

convert a encoded timestamp to date

$ echo -n 2c28e75d | dtool nd -tu32 | dtool ts2d
2019-12-04 11:29:48

convert a jpeg to base64

$ cat pic.jpg | dtool b2h | dtool h2b64
/9j/4AAQSkZJR...

calculate file md5

$ cat pic.jpg | dtool b2h | dtool hash -a md5
0x1884b72e23b0c93320bac6b050478ff4

Installation

Homebrew

$ brew install guoxbin/guoxbin/dtool

Recommend! Homebrew will install shell completion for bash, fish, and zsh along with dtool

Arch Linux

There is an AUR package for dtool that includes shell completion for bash, fish, and zsh.

git clone https://aur.archlinux.org/dtool.git
cd dtool
makepkg -si

Cargo

$ cargo install dtool

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言