Re: AES based win32crypt lib for python3

Tim Roberts <[email protected]>
Newsgroups gmane.comp.python.windows
Message-ID <[email protected]>
On Oct 5, 2020, at 8:24 AM, Raja Sekhar <[email protected]> wrote:
> 
> I have seen win32crypt lib for python, And it is built on DES algorithm.

Sort of.  Triple-DES is used to protect the master key derived from the credentials, but I’ve never seen Microsoft say what they actually use to encrypt the data blob.


> I am searching for such library in Python using  AES Algorithm. I have gone through pyAesCrypt, Crypto.Cipher  which is taking an explicit key for encryption. 
> I would be grateful if you could help me to find a library in python3,
> which uses AES encryption library similar to win32crypt which encrypts data using a session key derived from current user's logon credentials  as in ‘CryptProtectData’
> function.

Nope.  Remember that win32crypt is nothing but a thin layer that calls the Windows CryptProtectData API.  The API does a remote procedure call into the Windows LSA (Local Security Authority) to get access to the login credentials through an undocumented internal function.

You can certainly find AES encryption for Python, but it’s not going to use the login credentials.
— 
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-win32
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.