dtool icon indicating copy to clipboard operation
dtool copied to clipboard

Suggestion: Please add Base64 encode/decode commands

Open ALeyshon opened this issue 3 years ago • 1 comments

Thanks in advance,

If I ever get a free moment, are you accepting PRs?

ALeyshon avatar Feb 08 '22 14:02 ALeyshon

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

guoxbin avatar Mar 12 '22 05:03 guoxbin

Close the issue since the commands are supported

guoxbin avatar Sep 19 '23 05:09 guoxbin