Skip to content

Instantly share code, notes, and snippets.

View jamierocks's full-sized avatar

Jamie jamierocks

View GitHub Profile
var alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
function cipher(input, shift) {
var result = '';
for (var i = 0; i < input.length; i++) {
var position = alphabet.indexOf(input[i].toUpperCase()) + Math.floor(shift);
if (position > 25) {
position -= 26;
}

Keybase proof

I hereby claim:

  • I am jamierocks on github.
  • I am jamierocks (https://keybase.io/jamierocks) on keybase.
  • I have a public key whose fingerprint is 1F90 8B72 99BF 0CFB 31E6 76E2 08C0 67AF 5B44 74B4

To claim this, I am signing this object: