Skip to content

Instantly share code, notes, and snippets.

@ron-michael
ron-michael / cipher.js
Created March 26, 2019 09:25
Substitution ciphering
/*
* This is the entire source code for the article “Subtitution ciphering in JavaScript”
* http://timseverien.com/articles/153-substitution-ciphering-in-javascript/
*/
(function() {
"use strict";
/**
* Cipher namespace, to store all the cyphers
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<!-- Totally "960 Colors"
Author : VenomVendor
Refer : http://stackoverflow.com/q/3769762/1008278
Reference : http://www.computerhope.com/htmcolor.htm , http://www.color-hex.com/color-names.html
-->
<!-- Colors arranged from A -Z -->
<color name="air_force_blue">#5D8AA8</color>
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<!-- Totally "960 Colors"
Author : VenomVendor
Refer : http://stackoverflow.com/q/3769762/1008278
Reference : http://www.computerhope.com/htmcolor.htm , http://www.color-hex.com/color-names.html
-->
<!-- Colors arranged from A -Z -->
<color name="air_force_blue">#5D8AA8</color>