🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #268

Re: MS-BASIC file security possible?

#268
From: Bryan D. Nehl
Date: Sun, 06 Sep 1992 01:34
22 lines
1713 bytes
In <3302@carroll1.cc.edu> sandberg@carroll1.cc.edu (Brian R. Sandberg) writes:
>I am writing an application in MS-BASIC V7.1 which uses random access data
>files.  Here's the problem:  these files contain confidential information.
>Is there a way to keep people from reading (accessing) these files?

Someone else mentioned encrypting the data before saving it out to
disk.  This is a pretty good idea.  Another thing that you might want
to do that is fairly easy is to put at the beginning of the file ascii
text like the following: Only Authorized Personnel may access this
data file.^Z the ^Z would be a ctrl-Z.  You could write a similar
string in the header of your file in binary.  This way if someone
tried to simply TYPE out the file then all they get is your message.
DOS will see the ^Z and stop. You might want to throw in a few or a
LOT of ^G's depending on what your size constraints are and how
annoying you want to be.

Bryan.

/* === Bryan Nehl ========== kodiak@Kodiakpc.Manhattan.KS.US =========+
[            USDA-ARS-NPA-WERU          ][ bdn@chepil.weru.ksu.edu    ]
[     913.532.6233 or 913.532.6495      ][ kodiak@matt.ksu.ksu.edu    ]
+_______________ ...!rutgers!matt.ksu.ksu.edu!kodiak _______________ */
Technical Details
Message-ID: <18bn7qINNnet@matt.ksu.ksu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!matt.ksu.ksu.edu!news
References: <3302@carroll1.cc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!matt.ksu.ksu.edu!news
From: kodiak@matt.ksu.ksu.edu (Bryan D. Nehl)
Newsgroups: alt.msdos.programmer
Subject: Re: MS-BASIC file security possible?
Date: 5 Sep 1992 20:34:50 -0500
Organization: Kansas State University
Lines: 22
Message-ID: <18bn7qINNnet@matt.ksu.ksu.edu>
References: <3302@carroll1.cc.edu>
NNTP-Posting-Host: matt.ksu.ksu.edu