dtool הוא כלי שורת פקודה אשר מאגד תחת בינארי אחד מספר לא קטן של פעולות שכיחות המבוצעות ע"י מפתחים.
העזרה של הפקודה מתארת את יכולותיה:
dtool 0.10.1
GB <guoxbin@gmail.com>
A command-line tool collection to assist development
USAGE:
dtool [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
a2h Convert byte array to hex
aes_dec AES decrypt
aes_enc AES encrypt
b2h Convert binary to hex
b582h Convert base58 to hex
b58c2h Convert base58 check to hex
b642h Convert base64 to hex
case Case conversion
completion Generate completion
d2ts Convert date to timestamp
ec_gk Elliptic-curve generate key pair (Secret key, Public key)
ec_pk Elliptic-curve calculate public key
ec_sign Elliptic-curve sign
ec_verify Elliptic-curve verify
ed_gk EdDSA generate key pair (Mini secret key, Public key)
ed_pk EdDSA calculate public key
ed_sign EdDSA sign
ed_sk EdDSA calculate secret key from mini secret key
ed_verify EdDSA verify
h2a Convert hex to byte array
h2b Convert hex to binary
h2b58 Convert hex to base58
h2b58c Convert hex to base58 check
h2b64 Convert hex to base64
h2s Convert hex to UTF-8 string
hash Hex to hash
hd HTML entity decode
he HTML entity encode
help Prints this message or the help of the given subcommand(s)
nd Number decode
ne Number encode
ns Number system
pbkdf2 Pbkdf2
re Regex match
s2h Convert UTF-8 string to hex
s2u UTF-8 string to unicode
sm4_dec SM4 decrypt
sm4_enc SM4 encrypt
sr_gk sr25519 generate key pair (Mini secret key, Public key)
sr_pk sr25519 calculate public key
sr_sign sr25519 sign
sr_sk sr25519 calculate secret key from mini secret key
sr_verify sr25519 verify
ts2d Convert timestamp to date
u2s Unicode to UTF-8 string
ud URL decode
ue URL encode
usage Show usage
מידע מפורט יותר ודוגמאות ניתן לקבל בעזרת dtool usage
או בתיעוד.
ניתן לשלב מספר פקודות בעזרת pipes כדי ליצור צירופים מעניינים. הפקודה תומכת בקלט דרך ארגומנטים או stdin, כמודגם בטיפים.