Cryptopals Guided Tour - 01 - Convert hex to base64



00:00 - Intro 01:10 - Exploring options for hex-decoding in an interpreter 02:00 - Introducing b16decode 03:15 - Writing the script's main logic 04:00 - Format string f"{expr=}" syntax 04:50 - Testing the solution 05:00 - Cleaning up the solution by refactoring 06:00 - Adding a __name__ guard (and explaining why we need one) 07:00 - Adding an explicit output check and testing the solution again Further reading: https://www.ietf.org/rfc/rfc4648.txt https://docs.python.org/3/library/base64.html https://docs.python.org/3/reference/import.html?highlight=__name__#name__


Comments