I am using User Level DPAPI encryption in a C# .net 2.0 Application. If i
need to move the application to another machine how can i move the encryption
key over.
The encrypted data is stored in a database on another machine.
I was under the impression that as long as i use the same username and
password on another machine i would still be able to decrypt my data, but
when i tried it failed.
Is it possible to backup the user key and restore it?
You have to use romaing profiles to be able to share the key between machines
- this of course only works in domains..
-----
Dominick Baier (http://www.leastprivilege.com)
Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)
> I am using User Level DPAPI encryption in a C# .net 2.0 Application.
> If i need to move the application to another machine how can i move
[quoted text clipped - 7 lines]
>
> Is it possible to backup the user key and restore it?
Matt P - 31 Aug 2007 09:04 GMT
Thanks Dominick.
From a disaster standpoint, i am wondering if it is possible to backup the
keys and store them somewhere safe, i.e. off site.
> You have to use romaing profiles to be able to share the key between machines
> - this of course only works in domains..
[quoted text clipped - 15 lines]
> >
> > Is it possible to backup the user key and restore it?
Dominick Baier - 31 Aug 2007 21:58 GMT
Not that i am aware of. And this is not the intended usage of DPAPI - if
you need "real" keys - use RSACryptoServiceProvider or certificates
-----
Dominick Baier (http://www.leastprivilege.com)
Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)
> Thanks Dominick.
>
[quoted text clipped - 20 lines]
>>>
>>> Is it possible to backup the user key and restore it?