Questions tagged [cryptprotectdata]

The CryptProtectData function performs encryption on the data in a DATA_BLOB structure. Typically, only a user with the same logon credential as the user who encrypted the data can decrypt the data. In addition, the encryption and decryption usually must be done on the same computer.

7 questions
3
votes
1 answer

Python - Error CryptProtectData Key not valid for use in specified state

I have script to export chrome passwords with Python script using win32 api function CryptProtectData but decrypting password is not working below is the code and the error ERROR Traceback (most recent call last): File…
Khanakia
  • 723
  • 1
  • 8
  • 20
1
vote
2 answers

Chrome 80 Password File Decryption in Python

I've written this code: import sqlite3 import win32crypt c = sqlite3.connect("Login Data") cursor = c.cursor() cursor.execute("SELECT origin_url, username_value, password_value FROM logins") data = cursor.fetchall() credentials = {} for url,…
Florin Cristi
  • 41
  • 1
  • 1
  • 7
1
vote
0 answers

Decrypting data using CryptProtectData function

I have a remote windows machine located far far away from me. The only way to manage it is through a proprietary management software that execute commands sent by me. It has norton 360 antivirus installed RDP is not enabled for security…
Matty2
  • 55
  • 6
1
vote
0 answers

What is small according to microsoft? `cryptprotectdata` data upper limit

In the documentation about the CryptProtectData function Microsoft tells to only use CryptProtectData with small buffers. This call can be slow and a memory hog, and unreliable. Use only with small buffers. CryptProtect/UnprotectData makes a…
0
votes
1 answer

Calling CryptProtectData in Python, then Calling CryptUnprotectData in C++ returns error 87 (and visa versa)

Using Python 3.11.0 and C++ in Unreal Engine 5.1 I'm encrypting user input using DPAPI in Python (3.11.0), and decrypting it through C++ (UE 5.1), but I get error 87 (which i think is a invalid parameter?) when running CryptUnprotectData in C++. I…
0
votes
0 answers

Decrypt CryptProtectData in c#

I'm making a program to recover password data in Chrome. I have access to the actual machine, and I know the schema of the password/username document. When I list the password_value table from the logins, it shows a bunch of weird, heavily encrypted…
acaiberii
  • 48
  • 1
  • 7
0
votes
1 answer

How to access specific byte from registry value encrypted with CryptProtectData

I am trying to retrieve a Date value from the registry. The value is encrypted with CryptProtectData. The Bytes of interest are (little-endian): [-16] and [-15] is a the year. [-14] and [-13] is a month and [-12] and [-11] is a day. RegistryKey…
carboneum
  • 21
  • 1
  • 6