Substitution cipher: Difference between revisions
m
→{{header|C}}: Remove vanity tags
Thundergnat (talk | contribs) m (→{{header|Ring}}: Remove vanity tags) |
Thundergnat (talk | contribs) m (→{{header|C}}: Remove vanity tags) |
||
Line 75:
Takes input file name, plain and cipher keys and the action ( Encrypt or Decrypt) as inputs. Only the first character of the action string is checked, so if you are feeling really [https://www.nsa.gov/ NSA like], use whatever string you want as long as it has a d/D or e/E in front.
<lang C>
#include<stdlib.h>
#include<stdio.h>
Line 226 ⟶ 224:
</pre>
And for the cleartext, just scroll up...btw, did you know that Digital Fortress was Brown's first novel and he wrote it back in 1998 ? Wonder why nobody ever saw Snowden happening ?
=={{header|C++}}==
The key file should look something like this: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789SWoVR0kJLXQ8zbCd1OagTH5ie3nvYU2wfrM9yI4sKm6c7hNjtADqFPxpEZlBuG
|