Decrypting on different platforms

From: Frank Perry (FrankPerry_at_discussions.microsoft.com)
Date: 05/25/05


Date: Wed, 25 May 2005 04:23:03 -0700

Howdy,

I have been using the sample code for encrypting and decrypting files. I
have no trouble using the password version to encrypt a file and decrypt it
on the same machine. But when I move the file to a different machine with a
different OS, it fails. The two OSs are W2K and CE.

So far, I have found the the hash created from the same password is
different on the two machines. I have tried forcing the same hash on both
machines but that doesn't get me anywhere either. I haven't seen the CE
side, but the KP_IV of the W2K side is all 0's.

I would try transfering the key itself, but on a different problem, I can't
get CryptGetUserKey to return a key. I am using the code from the example
but nothing comes back. I get the error that there is no key.

Are there any ideas about either of these problems?

Thanks in advance.

-- 
Frank Perry
LavaLeaf Software


Relevant Pages

  • Re: Java interacting with gpg
    ... > I'm starting a bit for our project where a client will be encrypting a small ... > I can simply fork off a gpg program everytime, ... to provide sample code which could be used to "shed" even more ... jobs from North America? ...
    (comp.lang.java.programmer)
  • Re: Cant encrypt file: "Cannot CreateOpen EFSCACHE directory"
    ... You may refer to the following article if you encounter similar issues in ... 264064 "Access is Denied" Error Message When Encrypting or Decrypting Files ...
    (microsoft.public.win2000.security)
  • CryptoAPI sample at MSDN does not compile successfully
    ... I am having a win 2k with Visual studio 6.0- SP4. ... encrypting a file does not compile successfully. ... Indentifier error for the Handles & cryptoAPI functions. ...
    (microsoft.public.platformsdk.security)
  • RE: EFS | Encryption | import private key
    ... "Encrypting and Decrypting Files and Folders by Using the Cipher Command" ...
    (microsoft.public.security)