Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to achieve successful Encryption in VC++ (using cryptoAPI)and decryption in C#.NET

How to achieve successful Encryption in VC++ (using cryptoAPI)and decryption in C#.NET

Scheduled Pinned Locked Moved C#
csharpc++securitycryptographytools
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ameysp
    wrote on last edited by
    #1

    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 !

    S 2 Replies Last reply
    0
    • A ameysp

      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 !

      S Offline
      S Offline
      sreejith ss nair
      wrote on last edited by
      #2

      Please go through the url. Hope that will give you some ideas. CryptAPI Sreejith Nair [ My Articles ]

      A 1 Reply Last reply
      0
      • A ameysp

        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 !

        S Offline
        S Offline
        sreejith ss nair
        wrote on last edited by
        #3

        Please go through the url. Hope that will give you some ideas. CryptAPI CP List of Cryptography links Sreejith Nair [ My Articles ]

        1 Reply Last reply
        0
        • S sreejith ss nair

          Please go through the url. Hope that will give you some ideas. CryptAPI Sreejith Nair [ My Articles ]

          A Offline
          A Offline
          ameysp
          wrote on last edited by
          #4

          Hey , Those are the links for Cryptography APi in VC++ , actually i'm successfully encrypting in VC++ as well as c# ,but i'm having problems decrypting a file in c# which is previously encrypted in vc++ . Anyways Thnx for the reply ! Amey

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups