473,811 Members | 2,842 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Decrypting a data protected by ProtectedData.P rotect() on another PC.

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?
Jun 27 '08 #1
3 4400
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 on www.lulu.com/owc $19.99
-------------------------------------------------------
"Sin Jeong-hun" <ty*******@gmai l.comwrote in message
news:ff******** *************** ***********@l28 g2000prd.google groups.com...
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?
Jun 27 '08 #2
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 filterwrote:
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...@gmai l.comwrote in message

news:ff******** *************** ***********@l28 g2000prd.google groups.com...
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?
Jun 27 '08 #3
Not necessarily, first read the documentation on the protect to determine
what algorithm it is using underneath. That will tell you if it is
decryptable on another machine. No documentation? Build a simple test
program that encrypts data and another to decrypt data taking in a string.
Run encryption on one machine, see if you can decrypt on another machine.
Usually, encryption methods provide some flexibility for choosing algorithms
and encryption keys.

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
-------------------------------------------------------
"Sin Jeong-hun" <ty*******@gmai l.comwrote in message
news:36******** *************** ***********@q27 g2000prf.google groups.com...
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 filterwrote:
>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...@gmai l.comwrote in message

news:ff******* *************** ************@l2 8g2000prd.googl egroups.com...
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?
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
3433
by: Act | last post by:
Why is it suggested to not define data members as "protected"? Thanks for help!
10
5793
by: Zap | last post by:
Widespread opinion is that public data members are evil, because if you have to change the way the data is stored in your class you have to break the code accessing it, etc. After reading this (also copied below for easier reference): http://groups.google.it/groups?hl=en&lr=&safe=off&selm=6beiuk%24cje%40netlab.cs.rpi.edu&rnum=95 I don't agree anymore.
10
7707
by: Alessandro Bottoni | last post by:
I know you will shake you head sadly but... I really have to perform such a suicidal task (even if for a short time and just for internal use). I have to send by email (over the open internet) a XML file containing _system commands_ (yes: the kind of stuff like "rm -dfr /") to a server and have a Python program sitting on this server, fetching and parsing the e-mail message and executing the commands (maybe with _root privileges_). Of...
3
4105
by: SpIcH | last post by:
Hi All, This is all about protecting my data in Executable file. I have developed a program in Visual Basic .NET 2002. I have many questions in mind... please help me to complete my project. 1. I have very much data to be incorporated into the executable file. I have to add much data into my developed program into 2 Combo Boxes and 1 List Box control. For that i have created an xml element with all of the
4
7565
by: SunYour | last post by:
Does anyone have some nice code samples? I need to put some data (confidantial data in a small "database"). I plan to use a xml schema to define the structure and serialize/deserialize to read/store data with the XmlSerializer class. But I need to protect the data with some kind of encryption. Is the idea with the xml schema wrong? Better ideas? It is, today, a CSV file like a;b;d;e;f;g
0
1797
by: Ginger Estherskip | last post by:
I have a question about a problem using ProtectedData.Protect, User Settings and ClickOnce together. When we update our app, ClickOnce correctly brings over all the User Settings/Application Settings from the earlier version --- except for the user settings that we've encrypted using ProtectedData.Protect. We are encrypting them for the current user, but something about them getting copied over with a new version corrupts the encrypted...
6
2262
by: satheesh | last post by:
c language can protect the data in scopes private,protected and public(may be) in structure and union?
162
10336
by: Sh4wn | last post by:
Hi, first, python is one of my fav languages, and i'll definitely keep developing with it. But, there's 1 one thing what I -really- miss: data hiding. I know member vars are private when you prefix them with 2 underscores, but I hate prefixing my vars, I'd rather add a keyword before it. Python advertises himself as a full OOP language, but why does it miss one of the basic principles of OOP? Will it ever be added to python?
5
3716
by: akshaycjoshi | last post by:
Ok ! I am reading the book Pro ADO.net. The author says that the <exename>.config files can store the connection string for security purposes. Later he says that still the connection string is visible to it's better to encrypt it. He explains that there is a new protectedData section in configuration files specifically for this purpose.
0
9734
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9607
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10663
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10401
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10416
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10138
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5567
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4357
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3881
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.