Secret Message Program
Author |
Message |
basharious
|
Posted: Mon Mar 27, 2006 4:13 pm Post subject: Secret Message Program |
|
|
Hizz...
This program takes a message in English(obviously) and code it (in English letters) to something like gibbersih and saves it to a file. It also has the option of decoding a saved message back into English.
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
Secret Message.t |
Filesize: |
8.96 KB |
Downloaded: |
210 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Delos
![](http://www.members.shaw.ca/rfolz/delos_avatar.gif)
|
Posted: Mon Mar 27, 2006 5:07 pm Post subject: (No subject) |
|
|
Not too bad.
- I'm glad you're using procs and fcns, but it's one thing to know how to use a sword, it's another to know how not to cut one own's hand off. You still have a ways to go before you'll be able to effectively use either or both of these.
You've started using parameters - stick with that and try to better you knowledge of them.
- your encoding/decoding algorithm is rather, uh, bad. Don't try hard-code every single value, that's just tiresome. For instance, what happens when someone enters in punctuation or numbers? Both are still parts of the English language...hence your programme should be able to encode them if it were to live up to its name.
Read the recent tuts on encryption, will help you come up with more efficient algorithms.
- this piece of code:
code: |
% Test that the open procedure has been successful
exit when inputfile > 0
|
could be made a little less brutal by using:
code: |
if File.Exists (fileName) then
%...
|
since with the previous method, crashes are quite possible. (Ah! assert!).
|
|
|
|
|
![](images/spacer.gif) |
|
|