c++ - How to decrypt data which is crypted by CryptProtectData function? -


I know that CryptProtectData functions copy the data using the password of the Windows user, I use it by using the cryptunusprotectadata function Can I decrypt when I cryptorize user, how is it possible to decrypt the data using only password and the user is not logged in?

Crypt ProtractData uses an encryption algorithm that can be used in an environment variable such as existing machine id and user credentials. Receives the key. This also indicates that in most cases you need to be encrypted user to decrypt.

There is a small warning, however, where you can bypass user credentials coming in key make-up; But sadly, whatever you can do is encrypt, which can be decrypted on any user same machine .

As presented, you can set the "CRYPTPROTECT_LOCAL_MACHINE" from DwFlags (dwFlags is an enum, you can only set it in uint 0). Just make sure to set deflaglags to call cryptUnprotectData on your encrypted contents and two functions work perfectly with symmetrical and each other. I personally tried it and can verify that it works.

Yes, the need for a single machine system is completely annoying, but it is the safest way to encrypt anything and make sure that there is no other computer in it, the world can decrypt it. .

Hope this helped, Navaan

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -