GithubHelp home page GithubHelp logo

jasperdoan / newtons-cipher Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.18 MB

Encryption program. Parse a string using Newton's encryption, based on a letter he wrote to Leibniz explaining fluxion, to encrypt it.

C++ 100.00%

newtons-cipher's Introduction

Newtons-Cipher

Description

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.

How does the cipher work?

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 3 a's so 3a, 2 m's so mm.

Task lists

  • Optimize ๐ŸŽ‰
  • Take in a whole file of text (paragraphs & sentences) instead of inputing from console
  • #1
  • Decipher the string after encrypting it

newtons-cipher's People

Contributors

jasperdoan avatar

Watchers

 avatar

newtons-cipher's Issues

Known issues

  • Script also traverses through 'spaces', For example: I really like Banana will turn into 3 4abeeiik3lnnry. 3 is an unwanted output, removing space will add to count a and n for some reason?
  • Memory allocation
  • Limited length to only 50 characters (can bump up or down but ideally it should get the user's inputted text length without having to go through type coercion(?) or something) <-- No idea how to fix, tried everything

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.