Dtool v0.7.0 released

dtool 0.7.0 released

About dtool

dtool is a command-line tool collection to assist development.

Full description on github

New features

  • Add SM3 algorithm for hash module
  • Add byte array / hex conversion
  • Add ECDSA module
  • Add SM4 symetric encryption module

Examples

Subcommand Desc Example
hash Hex to hash
SM3
v0.7.0
$ dtool hash -a sm3 0x616263
0x66c7f0f462eeedd9d1f2d46bdc10e4e24167c4875cf2f7a2297da02b8f\
4ba8e0
h2a Convert hex to byte array
v0.7.0
$ dtool h2a 0x61626364
[97, 98, 99, 100]
a2h Convert byte array to hex
v0.7.0
$ dtool a2h '[97, 98, 99, 100]'
0x61626364
ec_sign Elliptic-curve sign
Secp256k1
v0.7.0
$ dtool ec_sign -c secp256k1 -s 0x9cb4f775e9b67118242cea1528\
5555c287a7e3d2f86ba238c1fe87284b898e9a 0x616263
0x7c77b65a27984b0e124a0ae2eec6bbf2b338a5c999b943abda576108f9\
2e95364b0b983da055493c87fd138fe5673992b2a48ef85d9ad30c98fc1a\
fcc5fc7bc0
sm4_enc SM4 encrypt
CTR
v0.6.0
$ dtool sm4_enc -k 01010101010101010101010101010101 -i 03030\
303030303030303030303030303 -m ctr 0x616263
0x8cd7ea

Installation

$ cargo install dtool

or

$ brew install guoxbin/guoxbin/dtool

(Recommend brew which provides bash/zsh/fish shell completion)

Suggestion or contribution

https://github.com/guoxbin/dtool

Full feature list

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.