How to achieve successful Encryption in VC++ (using cryptoAPI)and decryption in C#.NET
-
Hello All, I am currently working in Honeywell and developing Licensing Utility . I am in a stage where I want to decrypt a previously encrypted file in VC++ in C# i.e. file encrypted in VC++ using windows cryptAPI and to be decrypted in C# . The problem is that in VC++ we create hash using CryptCreateHash , then add to it secret password using CryptHashData and then derive session key based on tht has hash key . The session key is further used for encryption and decryption . In C# , I found the basic encryption / decryption classes , setting of IV , key etc but I did find anything related to the hash key . In VC++ we are using RC2 for cryptography of plaintext and MD5 for hash key . Pls helpme out guys !
-
Hello All, I am currently working in Honeywell and developing Licensing Utility . I am in a stage where I want to decrypt a previously encrypted file in VC++ in C# i.e. file encrypted in VC++ using windows cryptAPI and to be decrypted in C# . The problem is that in VC++ we create hash using CryptCreateHash , then add to it secret password using CryptHashData and then derive session key based on tht has hash key . The session key is further used for encryption and decryption . In C# , I found the basic encryption / decryption classes , setting of IV , key etc but I did find anything related to the hash key . In VC++ we are using RC2 for cryptography of plaintext and MD5 for hash key . Pls helpme out guys !
Please go through the url. Hope that will give you some ideas. CryptAPI Sreejith Nair [ My Articles ]
-
Hello All, I am currently working in Honeywell and developing Licensing Utility . I am in a stage where I want to decrypt a previously encrypted file in VC++ in C# i.e. file encrypted in VC++ using windows cryptAPI and to be decrypted in C# . The problem is that in VC++ we create hash using CryptCreateHash , then add to it secret password using CryptHashData and then derive session key based on tht has hash key . The session key is further used for encryption and decryption . In C# , I found the basic encryption / decryption classes , setting of IV , key etc but I did find anything related to the hash key . In VC++ we are using RC2 for cryptography of plaintext and MD5 for hash key . Pls helpme out guys !
Please go through the url. Hope that will give you some ideas. CryptAPI CP List of Cryptography links Sreejith Nair [ My Articles ]
-
Please go through the url. Hope that will give you some ideas. CryptAPI Sreejith Nair [ My Articles ]