![]() |
| | #1 |
| Registered User Join Date: Feb 2006
Posts: 127
| Simple Filter ~Sven |
| 00Sven is offline | |
| | #2 |
| Slave Join Date: Jan 2005
Posts: 735
| Table based comes to mind That would be where you have a static table known only to the encoder and decoder which modifies the stream. Another idea is XOR (there's a faq) |
| MadCow257 is offline | |
| | #3 |
| Registered User Join Date: Feb 2006
Posts: 127
| So I just make a section with a bunch of statements like... Code: if(toupper(c)=='A'){
c='R';
}
Code: if(toupper(c)=='R'){
c='a'
}
|
| 00Sven is offline | |
| | #4 |
| Slave Join Date: Jan 2005
Posts: 735
| Here's an example Code: #include <stdio.h>
int main()
{
char table [] = "randomletters";
char input [] = "testinputchar";
char output [13];
unsigned int i;
for (i = 0; i < sizeof(input); i++)
output[i] = input[i] + table[i];
printf (output);
}
|
| MadCow257 is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| creating very simple text editor using c | if13121 | C Programming | 6 | 11-25-2004 09:49 AM |
| Simple message encryption | Vicious | C++ Programming | 10 | 11-07-2004 11:48 PM |
| Binary Search Trees Part III | Prelude | A Brief History of Cprogramming.com | 16 | 10-02-2004 03:00 PM |
| Simple simple program | Ryback | C++ Programming | 10 | 09-09-2004 05:48 AM |
| Need help with simple DAQ program | canada-paul | C++ Programming | 12 | 03-15-2002 08:52 AM |