home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pascal / 7949 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.5 KB  |  35 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!cs.utexas.edu!uwm.edu!spool.mu.edu!umn.edu!doug.cae.wisc.edu!inconel!chris
  3. From: chris@inconel.uucp (Christian)
  4. Subject: Re: Scramble text files
  5. Organization: U of Wisconsin-Madison College of Engineering
  6. Distribution: world 
  7. Date: 7 Jan 93 13:05:42 CST
  8. Message-ID: <1993Jan7.130542.5301@doug.cae.wisc.edu>
  9. References: <726193861.AA01015@contrast.wlink.nl> <1993Jan5.082329.13550@ncsu.edu> <1993Jan5.185410.3773@mksol.dseg.ti.com>
  10. Lines: 23
  11.  
  12. In article <1993Jan5.185410.3773@mksol.dseg.ti.com> mavmav@mksol.dseg.ti.com (michael a vincze) writes:
  13. >In article <726193861.AA01015@contrast.wlink.nl> berend@contrast.wlink.nl
  14. >(Berend de Boer) writes:
  15. >|> 
  16. >|> Can anyone point me to some code that will scramble a text
  17. >|> file? It could something that woudl do it on the fly (my
  18. >|> program is creating the text to be appended to said file),
  19. >|> or something I can churn the text file through later on.
  20. >|> This doesn't hafta be fancy (DES etc. would be overkill,) I
  21. >|> only need to keep the average user from using a text editor
  22. >|> to view/modify  this file.
  23. >      
  24. >A solution I would like to propose is to add an incremental offset to each
  25. >character.  The offset would start with 0 and increment to 255, then wrap-
  26. >around back to 0.  The first character would recieve the first offset, the
  27. >second character the second offset, etc.  Here is some psuedo code:
  28.  
  29. [details deleted]
  30.  
  31. I think I'll try this... thanks much for info. I'll post again incase anybody
  32. is interested in the final product.
  33.  
  34. -Chris
  35.