Try to extract password from my chrome browser but I got this error below
How can I solve this problem?

Traceback (most recent call last):
  File "Chromer.py", line 13, in <module>
    password = win32crypt.CryptUnprotectData(website_data[2], None, None, None, 0)[1]
pywintypes.error: (13, 'CryptProtectData', 'The data is invalid.')

Is this valid today? When I want a password from Chrome it wants yet another password to see these passwords. So what you have shared here looks dated, maybe obselete and broken.

I think Google Chrome encrypt the password with the help of CryptProtectData function right?

As to your new question of how Chrome encrypts you could dig into the documentation and if that's not enough find the source code to dig into. I consider your top post answered as from what I know, it's not that simple anymore because you don't want to have some rogue app copy out all your saved passwords.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.