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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Unicode support for CryptEncrypt(..) and CryptDecrypt(..) ...........

Unicode support for CryptEncrypt(..) and CryptDecrypt(..) ...........

Scheduled Pinned Locked Moved C / C++ / MFC
securityjsonhelptutorialquestion
4 Posts 3 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.
  • H Offline
    H Offline
    hvgyufg28fh38tyr78hf
    wrote on last edited by
    #1

    Hai All, I Want to know that, will CryptEncrypt(..) and CryptDecrypt(..) Windows API's support to Encrypt and decrypt the Unicode data ? Bcoz i Did encryption and Decryption of unicode data with this API's i got Some additional Letters at the end of line. please some tell how to solve this issue. Thanks in Advance Mahe

    CPalliniC L 2 Replies Last reply
    0
    • H hvgyufg28fh38tyr78hf

      Hai All, I Want to know that, will CryptEncrypt(..) and CryptDecrypt(..) Windows API's support to Encrypt and decrypt the Unicode data ? Bcoz i Did encryption and Decryption of unicode data with this API's i got Some additional Letters at the end of line. please some tell how to solve this issue. Thanks in Advance Mahe

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      There should be no issue with unicode data. :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      In testa che avete, signor di Ceprano?

      1 Reply Last reply
      0
      • H hvgyufg28fh38tyr78hf

        Hai All, I Want to know that, will CryptEncrypt(..) and CryptDecrypt(..) Windows API's support to Encrypt and decrypt the Unicode data ? Bcoz i Did encryption and Decryption of unicode data with this API's i got Some additional Letters at the end of line. please some tell how to solve this issue. Thanks in Advance Mahe

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Hi Mahe, Maybe the extra characters at the end of the string is CR and LF? I think you need to use the CRYPT_STRING_NOCR and CRYPT_STRING_NOCRLF to disable appending the newline characters when using the CryptBinaryToString Function[^]. Or you could just remove them as I did in this example: http://www.codeproject.com/Messages/2818620/Re-decrypting-question.aspx[^] Best Wishes, -David Delaune

        H 1 Reply Last reply
        0
        • L Lost User

          Hi Mahe, Maybe the extra characters at the end of the string is CR and LF? I think you need to use the CRYPT_STRING_NOCR and CRYPT_STRING_NOCRLF to disable appending the newline characters when using the CryptBinaryToString Function[^]. Or you could just remove them as I did in this example: http://www.codeproject.com/Messages/2818620/Re-decrypting-question.aspx[^] Best Wishes, -David Delaune

          H Offline
          H Offline
          hvgyufg28fh38tyr78hf
          wrote on last edited by
          #4

          Hi David, thankyou for ur responce, it helped for me.i solved that problem with some other methods. thanks Mahe

          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