Simple Inline Substitution Cipher

Last Updated: 2025.10.12



Outputs







Add to Bottom of Body

<script> function gentleSubDeCipher(newAlpha,para) { const alphaNum = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz0123456789"; const newAlphaNum = newAlpha; let corpse = document.getElementById(para).textContent; let victim = ""; for (let c = 0; c < corpse.length; c++) { foundIt = newAlphaNum.indexOf(corpse[c]); if (foundIt != -1) { victim = victim + alphaNum[foundIt]; } else { victim = victim + corpse[c]; } } corpse = corpse.replaceAll("&","&amp;"); corpse = corpse.replaceAll('"','&quot;'); corpse = corpse.replaceAll("'","&apos;"); corpse = corpse.replaceAll("<","&lt;"); corpse = corpse.replaceAll(">","&gt;"); document.getElementById(para).textContent=victim; } </script>