Python for Crypto

FYI … This post has been my way of learning python scripting for Cryptography.

I took help from sites such as Cryptopals and Krypton.
I also at first planned that I would refer some books for python such as Black Hat Python and Violent Python.
But the planned way didn’t work for me in case and I ended up looking for challenges online so that I could get a HandsOn Experience while learning to code.

I mostly used StackOverflow and Official Python Documentation.

I think this post might help the noobies learning crypto for CTF Challenges.

These challenges can help you grow in cryptography successively as I have arranged the challenges as per their difficulty level..

Lets see how much can u grasp XD.

Also Feedback are always appreciated.

Set 1

1 : Convert hex to base64

import binascii
import base64

string = '49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d'
text = binascii.unhexlify(string)
print text #returns a readable string
print base64.b64encode(text)