Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which Encryption algorithm does ProtectedData use?

For password encryption I want to use ProtectedData.

As far as I found out, this is a wrapper for CryptProtectData.

The MSDN only states something vague about encryption based on user credentials and that decryption usually must be done on the same machine, if user has no roaming profile.

Which encryption algorithm does it use?

Is there any analysis that states whether this encryption is suiting for password storage?

How else to implement a local password storage?

like image 269
Mare Infinitus Avatar asked Apr 08 '13 07:04

Mare Infinitus


People also ask

What algorithm does DPAPI use?

DPAPI uses Triple-DES. It uses proven cryptographic routines, such as the strong Triple-DES algorithm in CBC mode, the strong SHA-1 algorithm, and the PBKDF2 password-based key derivation routine. It uses proven cryptographic constructs to protect data.

Which encryption algorithm is recommended for use By owasp?

Algorithms. For symmetric encryption AES with a key that's at least 128 bits (ideally 256 bits) and a secure mode should be used as the preferred algorithm. For asymmetric encryption, use elliptical curve cryptography (ECC) with a secure curve such as Curve25519 as a preferred algorithm.

What is the fastest encryption algorithm?

Twofish is considered among the fastest encryption standards and is hence favoured for usage among hardware and software enterprises. It is freely available and hence makes it popular. The keys used in this algorithm may be up to 256 bits in length and only one key is needed.

What is the encryption algorithm?

An encryption algorithm is the method used to transform data into ciphertext. An algorithm will use the encryption key in order to alter the data in a predictable way, so that even though the encrypted data will appear random, it can be turned back into plaintext by using the decryption key.


1 Answers

This MSDN article has more information about CryptProtectData and DPAPI, and should contain the information you need. In particular:

DPAPI initially generates a strong key called a MasterKey, which is protected by the user's password. DPAPI uses a standard cryptographic process called Password-Based Key Derivation, described in PKCS #5, to generate a key from the password. This password-derived key is then used with Triple-DES to encrypt the MasterKey, which is finally stored in the user's profile directory.

The article applies to an older version of Windows, so depending on your Windows version, these algorithms might change, but they are probably not going to be less secure than the ones mentioned here.

Whether or not this is suitable for "password storage", depends a bit on what exactly you mean by this and what passwords you're storing I would say.

like image 167
Marcus Avatar answered Sep 18 '22 10:09

Marcus