{"id":1596,"date":"2023-02-17T05:30:29","date_gmt":"2023-02-17T05:30:29","guid":{"rendered":"https:\/\/www.tools.keywordfinder.us\/?page_id=1596"},"modified":"2023-02-17T05:30:29","modified_gmt":"2023-02-17T05:30:29","slug":"text-hider","status":"publish","type":"page","link":"https:\/\/tools.billionsideas.com\/hi\/text-hider\/","title":{"rendered":"Text Hider"},"content":{"rendered":"<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column has-base-3-background-color has-background is-layout-flow wp-block-column-is-layout-flow\">\n\n\n\n\t<style>\n        section{\n         margin-top:60px;\n        width: 100%;\n        max-width: 970px;\n        background-color: #fff;\n        border: 1px solid #ddd;\n        padding: 25px;\n      }\n<\/style>\n\n<section>\n\t<h1>Text Hider and Re-hider Tool<\/h1><br>\n\t<label for=\"text\">Enter text to be hidden:<\/label>\n\t<textarea id=\"text\" rows=\"4\" cols=\"50\"><\/textarea>\n\t<br>\n\t<label for=\"key\">Enter a number to use as the key:<\/label>\n\t<input type=\"number\" id=\"key\">\n\t<br><br>\n\t<button onclick=\"hideText()\">Hide Text Now<\/button>\n\t<br><br><br>\n\t<label for=\"hidden-text\">Hidden Text:<\/label>\n\t<p id=\"hidden-text\"><\/p>\n\t<button onclick=\"showHiddenValue()\">Show Hidden Value<\/button>\n\t<button onclick=\"reHideText()\">Re-hide Text Now<\/button>\n\t<br><br>\n\t<label for=\"rehidden-text\">Re-hided Text:<\/label>\n\t<p id=\"rehidden-text\"><\/p>\n\t<button onclick=\"showRehiddenValue()\">Show Re-hided Value<\/button>\n\t<br><br>\n\t<button onclick=\"copyHiddenText()\">Copy Hidden Text<\/button>\n\t<button onclick=\"copyRehiddenText()\">Copy Re-hided Text<\/button><br><br>\n\n\t<script src=\"script.js\"><\/script><\/section>\n\n\n\n\n<script>\nlet originalText = \"\";\nlet key = 0;\n\nfunction hideText() {\n\toriginalText = document.getElementById(\"text\").value;\n\tkey = parseInt(document.getElementById(\"key\").value);\n\tlet hiddenText = \"\";\n\tfor (let i = 0; i < originalText.length; i++) {\n\t\tlet charCode = originalText.charCodeAt(i);\n\t\tlet newCharCode = charCode + key;\n\t\thiddenText += String(newCharCode);\n\t\tif (i != originalText.length - 1) {\n\t\t\thiddenText += \",\";\n\t\t}\n\t}\n\tdocument.getElementById(\"hidden-text\").textContent = hiddenText;\n}\n\nfunction reHideText() {\n\tlet hiddenText = document.getElementById(\"hidden-text\").textContent;\n\tlet hiddenChars = hiddenText.split(\",\");\n\tlet rehiddenText = \"\";\n\tfor (let i = 0; i < hiddenChars.length; i++) {\n\t\tlet charCode = parseInt(hiddenChars[i]);\n\t\tlet newCharCode = charCode - key;\n\t\trehiddenText += String.fromCharCode(newCharCode);\n\t}\n\tdocument.getElementById(\"rehidden-text\").textContent = rehiddenText;\n}\n\nfunction showHiddenValue() {\n\tlet hiddenText = document.getElementById(\"hidden-text\").textContent;\n\talert(\"Hidden Value: \" + hiddenText);\n}\n\nfunction showRehiddenValue() {\n\tlet rehiddenText = document.getElementById(\"rehidden-text\").textContent;\n\talert(\"Re-hided Value: \" + rehiddenText);\n}\n\nfunction copyHiddenText() {\n\tlet hiddenText = document.getElementById(\"hidden-text\").textContent;\n\tcopyTextToClipboard(hiddenText);\n\talert(\"Hidden text copied to clipboard!\");\n}\n\nfunction copyRehiddenText() {\n\tlet rehiddenText = document.getElementById(\"rehidden-text\").textContent;\n\tcopyTextToClipboard(rehiddenText);\n\talert(\"Re-hided text copied to clipboard!\");\n}\n\nfunction copyTextToClipboard(text) {\n\tlet tempInput = document.createElement(\"textarea\");\n\ttempInput.value = text;\n\tdocument.body.appendChild(tempInput);\n\ttempInput.select();\n\tdocument.execCommand(\"copy\");\n\tdocument.body.removeChild(tempInput);\n}\n\n\n<\/script>\n\n\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Text Hider and Re-hider Tool Enter text to be hidden: Enter a number to use as the key: Hide Text Now Hidden Text: Show Hidden Value Re-hide Text Now Re-hided Text: Show Re-hided Value Copy Hidden Text Copy Re-hided Text<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","footnotes":""},"class_list":["post-1596","page","type-page","status-publish"],"taxonomy_info":[],"featured_image_src_large":false,"author_info":{"display_name":"Billions Ideas","author_link":"https:\/\/tools.billionsideas.com\/hi\/author\/loginbillionsideas-com\/"},"comment_info":0,"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tools.billionsideas.com\/hi\/wp-json\/wp\/v2\/pages\/1596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tools.billionsideas.com\/hi\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/tools.billionsideas.com\/hi\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/tools.billionsideas.com\/hi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tools.billionsideas.com\/hi\/wp-json\/wp\/v2\/comments?post=1596"}],"version-history":[{"count":0,"href":"https:\/\/tools.billionsideas.com\/hi\/wp-json\/wp\/v2\/pages\/1596\/revisions"}],"wp:attachment":[{"href":"https:\/\/tools.billionsideas.com\/hi\/wp-json\/wp\/v2\/media?parent=1596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}