home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pascal / 7861 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  2.0 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!overload.lbl.gov!lll-winken!taco!csemail.cropsci.ncsu.edu!samodena
  2. From: samodena@csemail.cropsci.ncsu.edu (S. A. Modena)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: Scramble text files
  5. Message-ID: <1993Jan5.082329.13550@ncsu.edu>
  6. Date: 5 Jan 93 08:23:29 GMT
  7. References: <726193861.AA01015@contrast.wlink.nl>
  8. Sender: news@ncsu.edu (USENET News System)
  9. Organization: Crop Science Dept., NCSU, Raleigh, NC 27695-7620
  10. Lines: 33
  11.  
  12. In article <726193861.AA01015@contrast.wlink.nl> berend@contrast.wlink.nl (Berend de Boer) writes:
  13. >Christian wrote in a message to All:
  14. >
  15. > C> Can anyone point me to some code that will scramble a text
  16. > C> file? It could something that woudl do it on the fly (my
  17. > C> program is creating the text to be appended to said file),
  18. > C> or something I can churn the text file through later on.
  19. > C> This doesn't hafta be fancy (DES etc. would be overkill,) I
  20. > C> only need to keep the average user from using a text editor
  21. > C> to view/modify  this file.
  22. >
  23. >Just change the low and high order bytes?
  24. >
  25. >Berend. (-:
  26.  
  27. Or XOR it by the file's name.  This "encodes" it going in...and of course,
  28. XOR the scrambled file with the file name to recover it.  XOR is fast,
  29. and it's a cinch that you know the file name (i.e. the XOR "key") going
  30. in and coming out.  :^)
  31.  
  32. Steve
  33. ---
  34. +------------------------------------------------------------------+
  35. |     In person:  Steve Modena     AB4EL                           |
  36. |     On phone:   (919) 515-5328                                   |
  37. |     At e-mail:  nmodena@unity.ncsu.edu                           | 
  38. |                 samodena@csemail.cropsci.ncsu.edu                |
  39. |                 [ either email address is read each day ]        |
  40. |     By snail:   Crop Sci Dept, Box 7620, NCSU, Raleigh, NC 27695 |
  41. +------------------------------------------------------------------+
  42.          Lighten UP!  It's just a computer doing that to you.    (c)
  43. OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
  44.          
  45.