i have a list named as abc which have data like this :
{'devicetype': ['nokia'],'userid': ['1234'], 'year': ['2013']}
Now i have to generate the md5 of the values like nokia , '1234' , '2013' for this i had taken these value in variable like this
devicetype = abc['devicetype']
userid = abc['userid']
year = abc['year']
after that i tried to use md5 to generate a hash like this
authvalue = hashlib.md5()
authvalue.update(devicetype+userid+year)
it gives me an error "must be string or buffer, not list" i know this will accept just string . but how can i generate the md5 of these list value?