Last active
November 27, 2018 03:38
-
-
Save Spuffynism/687db63083b0275a29e179cc685f834f to your computer and use it in GitHub Desktop.
Caesar Cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e=(m,a,b)=>m.replace(/./g,c=>String.fromCharCode(((c.charCodeAt()-65)*a+b)%26+65)) | |
d=(m,a,b)=>m.replace(/./g,c=>String.fromCharCode(a*(c.charCodeAt()-39-b)%26+65)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment