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. Visual Basic
  4. decrypt a file in stringbuilder

decrypt a file in stringbuilder

Scheduled Pinned Locked Moved Visual Basic
6 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.
  • W Offline
    W Offline
    WhiteGirl23
    wrote on last edited by
    #1

    HI, I encrypted a file and now I want to decrypt it but not in another file but in a stringbuilder. Thanks

    C 1 Reply Last reply
    0
    • W WhiteGirl23

      HI, I encrypted a file and now I want to decrypt it but not in another file but in a stringbuilder. Thanks

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You would decrypt it in memory, surely ? Why do you need to use a stringbuilder ?

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      W 1 Reply Last reply
      0
      • C Christian Graus

        You would decrypt it in memory, surely ? Why do you need to use a stringbuilder ?

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        W Offline
        W Offline
        WhiteGirl23
        wrote on last edited by
        #3

        hi,thanks for your answer. I need the information to put it in a stringbuilder. thanks again

        C C 2 Replies Last reply
        0
        • W WhiteGirl23

          hi,thanks for your answer. I need the information to put it in a stringbuilder. thanks again

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          You would need to decrypt it first, then pass the data to the stringbuider.


          -- Always write code as if the maintenance programmer were an axe murderer who knows where you live. Upcoming FREE developer events: * Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ... * Reading: SQL Bits My website

          1 Reply Last reply
          0
          • W WhiteGirl23

            hi,thanks for your answer. I need the information to put it in a stringbuilder. thanks again

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            OK, so you need a string. I'd imagine you'd get a byte array back from a decryption method ? You would use an Encoding class to turn that into a string, depending on if it's Unicode, ASCII, or something else.

            Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

            W 1 Reply Last reply
            0
            • C Christian Graus

              OK, so you need a string. I'd imagine you'd get a byte array back from a decryption method ? You would use an Encoding class to turn that into a string, depending on if it's Unicode, ASCII, or something else.

              Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

              W Offline
              W Offline
              WhiteGirl23
              wrote on last edited by
              #6

              thanks guys. I resolved the problem. Thanks again.

              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