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. Encrypting files automatically when closing a programme

Encrypting files automatically when closing a programme

Scheduled Pinned Locked Moved Visual Basic
help
3 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.
  • F Offline
    F Offline
    Fionn
    wrote on last edited by
    #1

    Hi, I'm struggling a bit with getting my programme to automatically encrypt a set of files when the programme closes. My programme writes the files during run-time in response to people's answers to certain questions. I don't want others able to snoop on this data and thus need the programme, when the CLOSE button is pressed, to automatically encrypt all the files which have been written to that session, Any help would be much appreciated.

    R 1 Reply Last reply
    0
    • F Fionn

      Hi, I'm struggling a bit with getting my programme to automatically encrypt a set of files when the programme closes. My programme writes the files during run-time in response to people's answers to certain questions. I don't want others able to snoop on this data and thus need the programme, when the CLOSE button is pressed, to automatically encrypt all the files which have been written to that session, Any help would be much appreciated.

      R Offline
      R Offline
      Ray Cassick
      wrote on last edited by
      #2

      VB6 or VB.NET? Do you really NEED to encrypt the files or just keep them from the eyes of others? If you are on a system that has access privileges set up you should be able to just keep the data file for each user inside their own profile space so that no other logged on user can access them.


      Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Jörgen Sigvardsson wrote: If the physicists find a universal theory describing the laws of universe, I'm sure the asshole constant will be an integral part of that theory.


      F 1 Reply Last reply
      0
      • R Ray Cassick

        VB6 or VB.NET? Do you really NEED to encrypt the files or just keep them from the eyes of others? If you are on a system that has access privileges set up you should be able to just keep the data file for each user inside their own profile space so that no other logged on user can access them.


        Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Jörgen Sigvardsson wrote: If the physicists find a universal theory describing the laws of universe, I'm sure the asshole constant will be an integral part of that theory.


        F Offline
        F Offline
        Fionn
        wrote on last edited by
        #3

        VB.Net. Unfortunately I really do need to encrypt the files since they would contain confidential information which should not be accessible to anyone except people with admin privileges ( IOW, the people entering the info shouldn't even have access to the entered info). I've looked into the various other ways of doing this and I really think encryption is the way I need to go, unfortunately I haven't found a way to enact it without first loading the file into a textbox and then encrypting only that text. Unfortunately that's a no go also.

        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