diff options
Diffstat (limited to 'pipermail/pycrypto/attachments/20111021/99fa5bbc/attachment.html')
-rw-r--r-- | pipermail/pycrypto/attachments/20111021/99fa5bbc/attachment.html | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/pipermail/pycrypto/attachments/20111021/99fa5bbc/attachment.html b/pipermail/pycrypto/attachments/20111021/99fa5bbc/attachment.html new file mode 100644 index 0000000..73061fb --- /dev/null +++ b/pipermail/pycrypto/attachments/20111021/99fa5bbc/attachment.html @@ -0,0 +1,85 @@ +<tt> +<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><br> +<br> +<head><br> +<meta http-equiv=Content-Type content="text/html; charset=us-ascii"><br> +<meta name=Generator content="Microsoft Word 12 (filtered medium)"><br> +<style><br> +<!--<br> + /* Font Definitions */<br> + @font-face<br> +        {font-family:"Cambria Math";<br> +        panose-1:2 4 5 3 5 4 6 3 2 4;}<br> +@font-face<br> +        {font-family:Calibri;<br> +        panose-1:2 15 5 2 2 2 4 3 2 4;}<br> + /* Style Definitions */<br> + p.MsoNormal, li.MsoNormal, div.MsoNormal<br> +        {margin:0in;<br> +        margin-bottom:.0001pt;<br> +        font-size:11.0pt;<br> +        font-family:"Calibri","sans-serif";}<br> +a:link, span.MsoHyperlink<br> +        {mso-style-priority:99;<br> +        color:blue;<br> +        text-decoration:underline;}<br> +a:visited, span.MsoHyperlinkFollowed<br> +        {mso-style-priority:99;<br> +        color:purple;<br> +        text-decoration:underline;}<br> +span.EmailStyle17<br> +        {mso-style-type:personal-compose;<br> +        font-family:"Calibri","sans-serif";<br> +        color:windowtext;}<br> +.MsoChpDefault<br> +        {mso-style-type:export-only;}<br> +@page Section1<br> +        {size:8.5in 11.0in;<br> +        margin:1.0in 1.0in 1.0in 1.0in;}<br> +div.Section1<br> +        {page:Section1;}<br> +--><br> +</style><br> +<!--[if gte mso 9]><xml><br> + <o:shapedefaults v:ext="edit" spidmax="1026" /><br> +</xml><![endif]--><!--[if gte mso 9]><xml><br> + <o:shapelayout v:ext="edit"><br> + <o:idmap v:ext="edit" data="1" /><br> + </o:shapelayout></xml><![endif]--><br> +</head><br> +<br> +<body lang=EN-US link=blue vlink=purple><br> +<br> +<div class=Section1><br> +<br> +<p class=MsoNormal>This isn't a pycrypto question per se, but I thought someone<br> +might know the answer: I need to exclusive-OR two strings together.&nbsp; I<br> +tried operator.XOR, but I get a runtime error: <o:p></o:p></p><br> +<br> +<p class=MsoNormal><o:p>&nbsp;</o:p></p><br> +<br> +<p class=MsoNormal>&nbsp;&nbsp;&nbsp; ke = operator.xor(kbpkb,ve)<o:p></o:p></p><br> +<br> +<p class=MsoNormal>TypeError: unsupported operand type(s) for ^: 'str' and<br> +'str'<o:p></o:p></p><br> +<br> +<p class=MsoNormal><o:p>&nbsp;</o:p></p><br> +<br> +<p class=MsoNormal>Is there a way to do this in native Python (I'm using 2.7.2),<br> +or must I use a library of some sort?<o:p></o:p></p><br> +<br> +<p class=MsoNormal><o:p>&nbsp;</o:p></p><br> +<br> +<p class=MsoNormal>Thanks,<o:p></o:p></p><br> +<br> +<p class=MsoNormal>dpm<o:p></o:p></p><br> +<br> +<p class=MsoNormal><o:p>&nbsp;</o:p></p><br> +<br> +</div><br> +<br> +</body><br> +<br> +</html><br> + +</tt> |