On October 24th 1676, Newton wrote a letter to Leibniz in Latin explaining fluxion, but the letter was actually concealed in code because he was suspicious of Leibniz.
The program will prompt and take in a string, transverses and encipher it with Newton's cipher. For example: I am Batman
will translate to 3abimmn
.
Encryption program. Parse a string using Newton's encryption, based on a letter he wrote to Leibniz explaining fluxion, to encrypt it.
- The string is re-arranged into alphabetical order
- Counts the frequency of a letter and represent it with a number, if the frequency is less than 3 then it is printed twice
- (For e.g.
I am Batman
, there are 3a
's so3a
, 2m
's somm
.
- Optimize ๐
- Take in a whole file of text (paragraphs & sentences) instead of inputing from console
- #1
- Decipher the string after encrypting it