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
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:
2 matches
Mail list logo