home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
pcmag
/
vol4n18.arc
/
LOCK.DOC
< prev
next >
Wrap
Text File
|
1986-09-11
|
2KB
|
57 lines
LOCK (and UNLOCK) Steven Holzner
Commands PC Magazine Vol 4, No 18
Copyright 1985 Ziff-Davis Publishing Company
______________________________________________________
Purpose: Encrypts a file, rendering it unreadable to
anyone who does not know the user-chosen
passphrase. Complementarily, using the same
passphrase, de-encrypts the file.
Format: LOCK [d:][path]filename[.ext] [d:][path]
[filename][.ext]
or
UNLOCK [d:][path]filename[.ext] [d:][path]
[filename][.ext]
Remarks: The user-selected passphrase can be up to 64
characters in length; the programs prompt you
to supply it. Files to be LOCKed and
UNLOCKed must be less than 62K in length. If
you do not supply new filenames for the
locked and unlocked files, the programs use
the default filename FILE.LOC.
Example: You have a file of student course evaluations
named CONFY on drive C: that you wish to mail
to a colleague in encrypted form. You put a
formatted floppy disk in drive A:, and at the
C> prompt you enter
LOCK CONFY A:CRIMSON
When the program asks for a passphrase, you
enter VERITAS.
The CRIMSON file on the disk will be
unreadable. When your colleague--who must,
of course, be told the passphrase you have
used--puts the disk in his machine, he types
UNLOCK CRIMSON GUIDE
When prompted, he supplies the passphrase
VERITAS, and his file GUIDE will be identical
to your original file CONFY.
Notes:
1. LOCK and UNLOCK do not delete any files,
original or encoded.
2. Requires DOS version 2.0 or later.