Skip to content

Commit

Permalink
add new api functions
Browse files Browse the repository at this point in the history
  • Loading branch information
odilitime committed Feb 8, 2019
1 parent f7ae0f1 commit dd1d24e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ Tailor frequencies for specific plain text

charset2homophones(frequency set, character set, range of result homophone symbols) returns a letter to homephone mapping

encrypt(message, letter to homophones map) returns an array of all homophones
encrypt(plaintext, letter to homophones map) returns an array of all homophones

decrypt(message, letter to homophones map) decodes homophones back into original message
decrypt(cipher, letter to homophones map) decodes homophones back into original message

extractHomophones(plaintext, cipher, frequency set) return updated frequency set

adjustFrequency(frequency set, plaintext, scale) return updated frequency set

0 comments on commit dd1d24e

Please sign in to comment.