Re: [web2py] Issues with creating a hash...

2013-10-22 Thread Ricardo Pedroso
On Mon, Oct 21, 2013 at 10:48 AM, Jason (spot) Brower wrote: I have the following in my controller... > # -*- coding: utf-8 -*- > def validate_message(recieved_data, message_hash): > secret_salt = "12345" > import hashlib > m = hashlib.sha224() > m.update(recieved_data + secret_sal

[web2py] Issues with creating a hash...

2013-10-21 Thread Jason (spot) Brower
I have the following in my controller... # -*- coding: utf-8 -*- def validate_message(recieved_data, message_hash): secret_salt = "12345" import hashlib m = hashlib.sha224() m.update(recieved_data + secret_salt) hashed_message = m.digest() if message_hash == hashed_message: