That must be it.  I updated my deployment to the newest Debian with Python 
2.7 and all is working now.  You are the man!

-- Joe

On Thursday, June 13, 2013 10:36:36 PM UTC-7, Massimo Di Pierro wrote:
>
> There should be no difference but I remember reading in the past there was 
> a bug in hashlib on 2.6 x64. I cannot find the link any more but I found 
> this:
>
> "- Issue #1385: The hmac module now computes the correct hmac when
>
>   using hashes with a block size other than 64 bytes (such as sha384
>   and sha512)."
>
>
> http://www.python.org/download/releases/2.6.8/NEWS.txt
>
>
> Perhaps it is relevant.
>
>
> On Thursday, 13 June 2013 23:24:45 UTC-5, Joe Barnhart wrote:
>>
>> That's an excellent question, and one that did not occur to me.
>>
>> Yes, computer #1 has Python 2.7.1 and #2 has 2.6.6.  Was there a change 
>> in the way the keys are interpreted between these Python releases?
>>
>> -- Joe
>>
>> P.S. But wait -- Computer #1 works even when I mangle the hmac string 
>> deliberately.  Doesn't that imply its not seeing the string, but using the 
>> auth.key file instead?
>>
>>
>> On Thursday, June 13, 2013 8:48:41 PM UTC-7, Massimo Di Pierro wrote:
>>>
>>> Do they have the same python version? Does one of them have Python 2.6?
>>>
>>> On Thursday, 13 June 2013 19:26:27 UTC-5, Joe Barnhart wrote:
>>>>
>>>> I thought this would be simpler...
>>>>
>>>> I have been developing across two or three computers.  I set up a 
>>>> central PostgreSQL database and remoted it to two machines, and ran 
>>>> straight into the auth.key problem...  Since I am in development mode, I 
>>>> thought I'd just take the key generated and stored in the first comptuer's 
>>>> auth.key file and paste it as a string into the call to Auth() when the 
>>>> tables are created.
>>>>
>>>> To my surprise, this dosn't work.  The logon still fails from computer 
>>>> #2, even though I carefully copied the key string from computer #1, which 
>>>> continues to work after the surgery.  Even more surprising is the computer 
>>>> continues to work even when I CHANGE the string and randomize a character 
>>>> or two.
>>>>
>>>> Either the system is ignoring Auth(db.hmac_key="my string here") or I 
>>>> still don't know what I'm doing.  (High possibility of the latter!)
>>>>
>>>> Computer #1 is on 2.4.7 and #2 is on 2.5.1 if that matters.
>>>>
>>>> Joe
>>>>
>>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to