Re: converting strings to hex

2014-04-04 Thread Mark H Harris
On 4/4/14 5:36 PM, Chris Angelico wrote: If someone is asking for a hint, it's because s/he is trying to learn. I'm always willing to help someone learn, regardless of whether they're going through a course or currently employed or whatever. Sometimes a small hint can be obtained from the interpr

Re: converting strings to hex

2014-04-04 Thread Chris Angelico
On Sat, Apr 5, 2014 at 8:33 AM, Mark H Harris wrote: > On 4/4/14 1:16 AM, James Harris wrote: >> >> YMMV but I thought the OP had done a good job before asking for help and >> then asked about only a tiny bit of it. Some just post a question! > > >Indeed they do. Its a little like negotiating

Re: converting strings to hex

2014-04-04 Thread Mark H Harris
On 4/4/14 1:16 AM, James Harris wrote: YMMV but I thought the OP had done a good job before asking for help and then asked about only a tiny bit of it. Some just post a question! Indeed they do. Its a little like negotiating with terrorists. As soon as you negotiate with the first one, you

Re: converting strings to hex

2014-04-04 Thread alister
On Thu, 03 Apr 2014 21:38:38 -0500, Mark H Harris wrote: > On 4/3/14 9:10 PM, dave em wrote: >> >> I am taking a cryptography class and am having a tough time with an >> assignment similar to this. >> >> > hi Dave, if your instructor wanted you to work on this with other people > she would have ma

Re: converting strings to hex

2014-04-04 Thread Mark Lawrence
On 04/04/2014 04:22, dave em wrote: You haven't seen nothing yet, wait till M.L. catches you on the flip side for using gg. {running for cover} Who is ML? Good morning :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark

Re: converting strings to hex

2014-04-03 Thread James Harris
"Mark H Harris" wrote in message news:533e1b2e.5040...@gmail.com... > On 4/3/14 9:10 PM, dave em wrote: >> >> I am taking a cryptography class and am having a >> tough time with an assignment similar to this. >> > > hi Dave, if your instructor wanted you to work on this with other people > she w

Re: converting strings to hex

2014-04-03 Thread dave em
> You haven't seen nothing yet, wait till M.L. catches you on the flip > > side for using gg. {running for cover} Who is ML? -- https://mail.python.org/mailman/listinfo/python-list

Re: converting strings to hex

2014-04-03 Thread Mark H Harris
On 4/3/14 10:10 PM, dave em wrote: Thanks, got it. Sometimes the simple things can be difficult. Dave You haven't seen nothing yet, wait till M.L. catches you on the flip side for using gg. {running for cover} marcus -- https://mail.python.org/mailman/listinfo/python-list

Re: converting strings to hex

2014-04-03 Thread dave em
On Thursday, April 3, 2014 8:31:42 PM UTC-6, Tim Chase wrote: > On 2014-04-03 19:10, dave em wrote: > > > So my first step is to compute the key. I suspect my error below > > > is because c1 is a float and m1 is a string but I don't know how to > > > turn the string into a float. > > > > For

Re: converting strings to hex

2014-04-03 Thread Mark H Harris
On 4/3/14 9:10 PM, dave em wrote: I am taking a cryptography class and am having a tough time with an assignment similar to this. hi Dave, if your instructor wanted you to work on this with other people she would have made it a group project and ordered pizza for everyone. I'll give you so

Re: converting strings to hex

2014-04-03 Thread Tim Chase
On 2014-04-03 19:10, dave em wrote: > So my first step is to compute the key. I suspect my error below > is because c1 is a float and m1 is a string but I don't know how to > turn the string into a float. For the record, "c1" in your example should be an integer/long It sounds like you want the

converting strings to hex

2014-04-03 Thread dave em
Hello, I am taking a cryptography class and am having a tough time with an assignment similar to this. Given plain text message 1 and cipher 1 compute cipher 2 for message 2 Work flow will be: - figure out the key - use key to compute c2 So this is what I have so far and am getting nowhere fas