Re: Decrypting a data protected by ProtectedData.Protect() on another PC.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thank you for the reply. I didn't specify any specific algorithm for
that. I just used Protect() and Unprotect(), and all the things were
done automatically. So, I guess what you mean is that I can't
generally decrypt data which was Protect()ed on another machine or
user account, but have to use a third party library or manual
encryption.


On May 5, 2:41 am, "Alvin Bruney [ASP.NET MVP]" <vapor dan using hot
male spam filter> wrote:
It depends on how it was encrypted. Some encryption strategies use the
machine so that the algorithm actually uses part of the machine to encrypt
and decrypt meaning that you can't decrypt from another machine. There's
also the user account which doesn't use machine level means. The other
important part is key storage. How will you make it available to the
encryption/decryption algorithm - that's the major sticking point with
windows type applications. Usually, I use the enterprise library for my
encryption needs which manages some of the issues for you automatically.

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively onwww.lulu.com/owc$19.99
-------------------------------------------------------

"Sin Jeong-hun" <typing...@xxxxxxxxx> wrote in message

news:ffeaa757-c358-4314-bfbe-77314823aac0@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

It seems like the Protect() uses the Windows accout information to
encrypt data. If I know the user name and the password, can I decrypt
it on another PC? If it is not, how about the exported key? On Windows
Vista, if file encryption is used, Windows suggests to back up the
key. If I import the key on another PC, then can I decrypt a data
protected by the Protect() method?

Or it is impossible by any means?

.



Relevant Pages

  • Re: Byte array to string and back - newbie question
    ... // Create a symmetric algorithm. ... This is done to make encryption more ... // Encrypt a string into a string using a password ... // Decrypt a byte array into a byte array using a key and an IV ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Theoretical
    ... and you're trying to determine the algorithm ... > and either recover the encryption key or at least decrypt one or more ... > of the remaining ciphertexts. ... you won't be able to decrypt ...
    (sci.crypt)
  • Re: Decrypting a data protected by ProtectedData.Protect() on another PC.
    ... first read the documentation on the protect to determine what algorithm it is using underneath. ... Build a simple test program that encrypts data and another to decrypt data taking in a string. ... encryption methods provide some flexibility for choosing algorithms and encryption keys. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Decryption Performance
    ... There is something wrong with your statement: you cannot decrypt data ... is a hashing (not encryption) algorithm and you cannot decrypt hashed data. ...
    (microsoft.public.dotnet.security)
  • Re: How to Decrypt this ?
    ... encryption algorithm was written by a friend of mine but I need to ... offset used for key then the receiver of key must have same offset ... need the algorithm that create the offset to decrypt the key. ...
    (sci.crypt)