DPAPI with User Profile

From: Kiran Kumar Pinjala (KiranKumarPinjala_at_discussions.microsoft.com)
Date: 08/26/04

  • Next message: Guillermo Proano [MS]: "RE: API Call vs Security"
    Date: Thu, 26 Aug 2004 11:33:13 -0700
    
    

    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: Guillermo Proano [MS]: "RE: API Call vs Security"

    Relevant Pages

    • RE: NTE_BAD_DATA
      ... They are NOT used DIRECTLY to encrypt / decrypt data; ... you should generate a RANDOM SESSION KEY and select a SYMMETRIC ENCRYPTION ... // imported from a BLOB read in from the source file or having ...
      (microsoft.public.platformsdk.security)
    • Re: Back Doors
      ... >> Design into the system a master key. ... Encrypt that with public key. ... Decrypt random symmetric key with private key. ...
      (sci.crypt)
    • Re: CAPI and RC4: can not decrypt when Final parameter is set to F
      ... to store ASYMMETRIC key pairs - never symmetric keys like RC4, ... Now when you need to encrypt at one place and decrypt at the other normally ... Get a HCRYPTPROV handle to a key container with CryptAcquireContext ...
      (microsoft.public.platformsdk.security)
    • Re: RSA - Public vs. Private Keys
      ... This is a common pattern for license software ... your client will send a unique machine hash to the ... will let us decrypt with a Public Key (or simply not ... |> RSA is intended to encrypt messages with public keys only. ...
      (microsoft.public.dotnet.security)
    • Re: .NET Crypto Classes Interoperability with Win32 Crypto APIs
      ... when i encrypt a string using .NET classes and try to ... > decrypt it using Win32 APIs, ... > UnicodeEncoding(); ...
      (microsoft.public.dotnet.security)