Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Bacon Cipher #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

ghSP
Copy link

@ghSP ghSP commented Jun 28, 2019

What is a bacon cipher? (copied from Geocaching Toolbox with spelling corrections)

The baconian cipher is a method of stenography. Stenography is the art of writing hidden messages in such a way that no one suspects the existence of the message. In case of the baconian cipher, each letter is encoded with a series of 5 characters consisting of a number of A's and B's.
However, in a text encoded with this cipher, you will never see these series of A's and B's. They are hidden within a text. An example is the coding through typeface, for example normal and italic letters. The normal letters represent an A and the italic letters represent a B. By this way one can hide a secret message in an on first sight normal text.

I have added a Baconian Cipher into the index.js files, added the 'characters' to a variable in the utils file and have create the actual cipher with the same design as the other cipher-files.

One thing I am not sure how to do is add tests/coverage for the bacon cipher. If you could let me know how to do this and what format you would prefer it be in I would be more than happy to do that.

~ Sam Price

@coveralls
Copy link

coveralls commented Jun 28, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling 522c0bd on yaas-dev:feature/bacon-cipher into f64c59a on sheharyarn:master.

Added a regex that removes all alphanumerical
characters that are NOT capital A or B. This
still keeps non-alpanumerical characters in the roundup.

"AAAAB898* -0" ==> "AAAAB* -"
@ghSP
Copy link
Author

ghSP commented Jun 28, 2019

To increase coverage, I can write tests for decrypt/encrypt Bacon cipher. I would just need criteria for each method to meet in order to increase that coverage from 9.38 to 100 percent

@ghSP
Copy link
Author

ghSP commented Jun 28, 2019

I looked at the cli.js file and I couldn't figure out how to add the bacon cipher into it. 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants