Encoding input to symbols
in
Programming Questions
•
2 years ago
I'm interested in writing a encoder/decoder for the
Bacon's Cipher (wiki).
Example: A word like 'Processing' would be encoded to 'ABBBABAAAAABBABAAABAAABAABAAABBAAABABAAAABBAAAABBA'
where A is a circle and B is a triangle.
Any suggestions as to how I could easily convert user input to such
a string of symbols? I'm fairly new at Processing, so any hints would be
much appreciated.
Here's an example of a Javascript encoder/decoder: Baconian Cipher
[ JS source ]
Example: A word like 'Processing' would be encoded to 'ABBBABAAAAABBABAAABAAABAABAAABBAAABABAAAABBAAAABBA'
where A is a circle and B is a triangle.
Any suggestions as to how I could easily convert user input to such
a string of symbols? I'm fairly new at Processing, so any hints would be
much appreciated.
Here's an example of a Javascript encoder/decoder: Baconian Cipher
[ JS source ]
1