Read encrypted file windows form application c++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xakzyy
    New Member
    • Sep 2013
    • 3

    Read encrypted file windows form application c++

    Hello!

    I need some help to being able to actually read my encrypted file..

    I have the decryption code and works perfectly when running it through console app c++.

    But, the way I decrypt is to decrypt from a file, and create a new file which is decrypted.

    I can't use that kind of code in my program in windows form app c++..


    I need help to read the encrypted text file and decrypt it in memory while using it for my program..

    Would appriciate for help.

    Please ask any questions and I will answer them :)

    Edit::

    Some links to my codes I use at the moment.

    My decryption coded in console application:
    Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.


    My decryption code edited for form application (Did not do anything)
    Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.


    And this is the code I tried to read after it got decrypted (Reading file written in combobox_select edindexchange:

    Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    I'm not sure I understand your problem.

    I mean that I could write a function that takes a pointer to an array as input and decrypts the array into another array that's also an argument.

    Then I wouldn't care where the input came from. Or where it's going.

    Maybe a function like that could be embedded in your console app and also used in your Windows program.

    Comment

    • xakzyy
      New Member
      • Sep 2013
      • 3

      #3
      Well, as I am not good at explaining, I shall try my best..

      I have made a program which have (for now) 4 items.

      1 combobox
      3x textbox

      the combobox contains following words:

      WordOne
      Testing
      Example

      In the Text file I got this:

      Wordone"One"Two "Three
      Testing"Try"Tes t"ing
      Example"Ex"Samp le"Result

      So when I select Testing in combobox,
      The following text is written in each textbox.

      each " make the next work a new string.

      Anyways..

      My coding is all coded in the combobox, since it is used with comboBox1_Selec tedIndexChanged .

      So now I got the text file encrypted.
      I tried to decrypt it by coding in form1_load void.
      But the only way I can make the combobox to read the decrypted text file is if I by decrypting it in form1_load, I create a new text file.

      I would want the program to decrypt the encrypted file without having to create a new file for combobox to read.

      I hope this will help you some.

      Comment

      Working...