dtool
dtool copied to clipboard
Suggestion: Please add Base64 encode/decode commands
Thanks in advance,
If I ever get a free moment, are you accepting PRs?
In fact, these commands are supported already:
--------------------------------------------------------------------------------------------------
h2b64 Convert hex to base64 $ dtool h2b64 0x616263
v0.1.0 YWJj
--------------------------------------------------------------------------------------------------
b642h Convert base64 to hex $ dtool b642h YWJj
v0.1.0 0x616263
--------------------------------------------------------------------------------------------------
If you want to convert between utf-8 string and base64, you can use pipe:
echo 'hello' | dtool s2h |dtool h2b64
aGVsbG8=
echo 'aGVsbG8=' | dtool b642h | dtool h2s
hello
Close the issue since the commands are supported