For the lovely people at DrugDev
Write code, in your choice of language, that takes as input a string and integer shift and returns that string encoded using a basic Caesar cipher.
First, if you don't have Node.js you'll need to install it:
-
You can do a manual install from here:
https://nodejs.org/en/
. This will include Node and its package manager,npm
. -
If you are on a Mac and using Homebrew you can do the following:
brew install node --without-npm
(npm
and Homebrew don't play well together)curl -L https://www.npmjs.com/install.sh | sh
(so, installnpm
separately)
-
Or if you fancy a version manager download
nvm
:https://github.com/creationix/nvm
Once you've got Node installed:
git clone git@github.com:Murphydbuffalo/caesar-cipher.git
cd ./caesar-cipher
npm install
to install dependenciesnpm test
to run the test suite- Check out
cipher.js
to see the code - Check out the repo to see the git history:
https://github.com/Murphydbuffalo/caesar-cipher
- Email Dan at
murphydbuffalo@gmail.com
with questions or comments :)