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