Problem with cryptoapi
Tech-Archive recommends: Speed Up your PC by fixing your registry
Hi, i am using cryptoapi to encrypt my files. The files are decrypted if i
decrypt them on the same system with same user, but if i try to decrypt them
with different user or on different system, decryption fails. The function i
am using to encrypt files are:-
CryptAcquireContext();
CryptGetUserKey( );
CryptGetUserKey( );
GeneratePrivateKey();
CryptGenKey();
etc.
The fuction failing on decryption is
CryptImportKey();
Can anybody tell how to decrypt files on a different system;
Thanks;
.
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) - Key derivation in c++ and VB.NET
... I am trying to encrypt data in c++ and decrypt in VB.NET. ... System.Cryptography classes don't align exactly with the CryptoAPI ... Dim bHash As PasswordDeriveBytes ... (microsoft.public.dotnet.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) |
|