Re: DPAPI with User Profile
From: Nicole Calinoiu (nicolec_at_somewhere.net)
Date: 08/27/04
- Next message: Nicole Calinoiu: "Re: IPrincipal and IsInRole"
- Previous message: Novice: "Re: Adding permissions to predefined permission sets"
- In reply to: Kiran Kumar Pinjala: "DPAPI with User Profile"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 27 Aug 2004 14:19:40 -0400
A few questions:
1. Which MSDN article(s) did you use as your source(s)?
2. Are you using the user or machine store? (i.e.: Are you setting the
CRYPTPROTECT_LOCAL_MACHINE flag when calling DPAPI?)
3. Are you trying to decrypt data on Win2K machines when the original
encryption was performed on a WinXP machine? (See
http://support.microsoft.com/default.aspx?scid=kb;en-us;309408#6.)
"Kiran Kumar Pinjala" <KiranKumarPinjala@discussions.microsoft.com> wrote in
message news:62F8BDA5-4315-4379-896B-9AD37402A25B@microsoft.com...
> Hi all,
> I am using DPAPI to encrypt and decrypt strings. Copied all the code
> from
> the MSDN site. Everything works fine if I do both encryption and
> decryption
> on one machine.
>
> I have posted this error before and was told to use roaming profile by
> Steve Jansen, so i did that.
>
> The user profile that I am using is a network user with roaming profile.
>
> The problem is when I encrypt a string on machine1 and try to decrypt
> the
> encrypted stirng on the machine2, I keep getting the error "Key not valid
> for
> use in the specified state"
>
> Can anybody help me with this?
>
> Thanks in advance.
> Kiran Kumar Pinjala
- Next message: Nicole Calinoiu: "Re: IPrincipal and IsInRole"
- Previous message: Novice: "Re: Adding permissions to predefined permission sets"
- In reply to: Kiran Kumar Pinjala: "DPAPI with User Profile"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|