vigenere - Issue when loading binary data on Python -
i'm working on python project crypts based on vigenere cipher. i'm developing option able cypher files, based on binary. actually, when open file's binary through:
fbi=list(open(route, "rb")) i'm getting weird data 1 follows, instead of "0" , "1", i'm expecting get.
, b'\xcc\x0b\x92\x80*\xb1^v\x1c\x9c\x83\ xc1\xc0\x07\x82k\x93\xf0\xaf\xc1=\x13o\xd1\xaft\xedf\xde\xde\xfbr\xb8\xb0ey\xa4\ xc3,-\xce6d\x0f\xbag\x07\x1f\x95y\xd8\xf89\xe2{k\xabi/\xfcl-<!\x15\xe0vyo\xe4\x1 6\xd1\xfe\xf3;\x8ce\xf6\x03\x9es\x8e\xa4\xf3\xde\xbe\xba\xf0\xd5\xb5\x9e\x99\xa0 me\xa6o\r\xcd\x82x\xa7\x91*\x10vpp\x9d\xc0\x8e\x0ez\xf0k\xaf\x82u?\xd8\xce\xd8$\ xc4b\x86\xfe\x1f\x99gj\x86dh\xe2vgbd\xc3\x1cu\xc4\xa7\xa7\xb75\x81~6}\xb4:\xa3~\ xe4e\t\xc1]\xae\xc3\xfc=\xab\xf3\x93\xe3e\xcc\xa7\xe2[\x9bx"\xc9\xfd\xd3\x97q!\x c6\xd4\xe4\x0c\x11\xc0\x19\xce\x7f\xc6\xbc,\xbe\xcf9\xd8\xb4n\x14\xf9\x8c\xc4\xb 0\x1f/%h\x075\x11y6/\xee\xf7+\x96\x11\xaej+\x8c\x0eo\x1c\x1e=?\\r\xc4\xc8\'w\x8d \xd1`a\xcb\xe39\xe7\x91\x83\x9c\x0e\x9c\x8cs\xe3\x92o\xde\x12\xf1\xf2\xa0j?\xb8\ xbc\xe3\r\x8fz\xb4\x92\x01t\x8b\xbc:\xe02\x86^\xab\xc6\xe6<p\xdf\xa5x\xb7vkfo\x9 9\x98\x11\x8c\x9c\x96\xeano\xa0\xe7\xbf5\xdf|=i\xdf\xe2\xdf\x86q\x03+\x9dn\xdcmr b\xaedn\x9f\xec\xe4\xe7\xf3\xf7\xaf\xd8\xcf\n' i'm still beginner @ python , first time i'm trying manipulate/edit binary have lot learn still.
could explain me why i'm getting this? , how 0's , 1's if possible? in advance,
full code can found here: http://pastebin.com/0w8ik3kh#.
Comments
Post a Comment