Python Challenge [8]

For Level 8, we’re given a look at another compression format, bz2. Not being a mac user, I’m more familiar with gz.

Not a lot of commentary here, as it really boiled down to whether your google-fu turned up a reference for bz2. Yes, you have a bee, yes they go bzzz, no I didn’t connect that with a data compression.


import bz2
un = "BZh91AY&SYA\xaf\x82\r\x00\x00\x01\x01\x80\x02\xc0\x02\x00 \x00!\x9ah3M\x07<]\xc9\x14\xe1BA\x06\xbe\x084"
pw = "BZh91AY&SY\x94$|\x0e\x00\x00\x00\x81\x00\x03$\x00!\x9ah3M\x13<]\xc9\x14\xe1BBP\x91\xf08"
user = bz2.decompress(un)
pword = bz2.decompress(pw)
print "Username: ",user,"\nPassword: ",pword