I use Python to complete this play. If you don’t have it, you can try to download it and enjoy it.
Given the hex string, hex string mean the base16 encode. base16 make each eight bit turn to two hex, then convert to three characters.
- use
bytes.fromhex
to unhexlify - then use b64encode in
base64
module
1 | import base64 |
Certainly, we want to write small program to use in the future.
Then use some tricks to increase skill about module.
- def: def mean create a function to use repeatedly.
__name__=="__main__"
: create a alone environment.
1 | from base64 import b16decode, b64encode |