Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save halfnibble/aa21419dbc54ca698f88d1011835673a to your computer and use it in GitHub Desktop.
Save halfnibble/aa21419dbc54ca698f88d1011835673a to your computer and use it in GitHub Desktop.
Secret decoding in JavaScript
// Caesar cipher +2
var encoded_caesar = "vjg"tckp"kp"urckp"hcnnu"ockpn{"qp"vjg"rnckp";
// Divisible by 2: +1, Divisible by 3: +3, Divisible by both: -1
var fancy_cipher = "shf#ne`njqh nf!ojfd jv!41";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment