dpapi

Using DPAPI with Python?

无人久伴 提交于 2019-11-28 19:35:47
Is there a way to use the DPAPI (Data Protection Application Programming Interface) on Windows XP with Python? I would prefer to use an existing module if there is one that can do it. Unfortunately I haven't been able to find a way with Google or Stack Overflow. EDIT: I've taken the example code pointed to by "dF" and tweaked it into a standalone library which can be simply used at a high level to crypt and decrypt using DPAPI in user mode. Simply call dpapi.cryptData(text_to_encrypt) which returns an encrypted string, or the reverse decryptData(encrypted_data_string), which returns the plain

information on Data Protection API (DPAPI)

落花浮王杯 提交于 2019-11-28 11:36:35
I am currently writing a c# mvc web application in which password are being taken from a user and stored in a database - sql server. I need a way of hashing the passwords. It has been recommended to be to use the Data Protection API (DPAPI). I am not familliar with it and from research on the internet, very little information exists on it. Can anyone point in the direction for further information on it? OR give me an overview of how to set it up and work with it etc. The Data Protection API is primarily used for protecting cryptographic keys and secrets under a users credentials. If you want

How do I store and retrieve credentials from the Windows Vault credential manager?

流过昼夜 提交于 2019-11-26 06:25:56
问题 I want to securely store a plaintext password on Windows PC. I am currently using DPAPI CryptProtectData to encrypt it, then store the encrypted blob in a file in user\'s local AppData. In Windows 7, there is Windows Vault, a credential manager (Control Panel\\User Accounts and Family Safety\\Credential Manager) that stores logon data for a variety of logon types, including \"generic credential\". On the surface this looks like the right place for a program to store credentials. However, I