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 / C++ / MFC
  4. Write data to file which cannot be viewed

Write data to file which cannot be viewed

Scheduled Pinned Locked Moved C / C++ / MFC
c++
5 Posts 5 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.
  • M Offline
    M Offline
    manoharbalu
    wrote on last edited by
    #1

    I am developing a c++ application which deals secured information which should not be viewed but to be saved to a file. Is there a way to write to a file which cannot be viewed directly by the user from disk whereas it could be read by the program.

    D L J L 4 Replies Last reply
    0
    • M manoharbalu

      I am developing a c++ application which deals secured information which should not be viewed but to be saved to a file. Is there a way to write to a file which cannot be viewed directly by the user from disk whereas it could be read by the program.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      manoharbalu wrote:

      Is there a way to write to a file which cannot be viewed directly by the user from disk whereas it could be read by the program.

      Encrypt it?

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

      1 Reply Last reply
      0
      • M manoharbalu

        I am developing a c++ application which deals secured information which should not be viewed but to be saved to a file. Is there a way to write to a file which cannot be viewed directly by the user from disk whereas it could be read by the program.

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

        Don't save it on the user's system.

        1 Reply Last reply
        0
        • M manoharbalu

          I am developing a c++ application which deals secured information which should not be viewed but to be saved to a file. Is there a way to write to a file which cannot be viewed directly by the user from disk whereas it could be read by the program.

          J Offline
          J Offline
          jschell
          wrote on last edited by
          #4

          manoharbalu wrote:

          Is there a way to write to a file which cannot be viewed directly by the user

          no.

          1 Reply Last reply
          0
          • M manoharbalu

            I am developing a c++ application which deals secured information which should not be viewed but to be saved to a file. Is there a way to write to a file which cannot be viewed directly by the user from disk whereas it could be read by the program.

            L Offline
            L Offline
            leon de boer
            wrote on last edited by
            #5

            Do what Richard says encrypt it when your write and decrypt when you read it. You can go from simple XOR encryption if it isn't that important to the real heavy stuff and there is a pile of libraries and code out there.

            In vino veritas

            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