{"id":9980,"date":"2015-11-09T11:17:56","date_gmt":"2015-11-09T17:17:56","guid":{"rendered":"http:\/\/www.mrc-productivity.com\/techblog\/?p=9980"},"modified":"2023-05-19T13:52:40","modified_gmt":"2023-05-19T19:52:40","slug":"scramblingobfuscating-url-parameters","status":"publish","type":"ht_kb","link":"https:\/\/www.mrc-productivity.com\/techblog\/?ht_kb=scramblingobfuscating-url-parameters","title":{"rendered":"Masking &#038; Scrambling Sensitive Data"},"content":{"rendered":"<p>When creating web applications, developers occasionally wish to hide, scramble or otherwise obfuscate data that is displayed on the page and\/or sent via the URL. The main reason for this is that application developers need to protect the information being sent across the URL from being read by the end-user. An example of this would be in the medical field, where a developer would want to protect Patient Names (or other information) from being displayed in plain view. <\/p>\n<p><strong>Video Walkthrough<\/strong><br \/>\n<iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/zAdKnhUixTM\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p><strong>Mask<\/strong><br \/>\nTo mask characters within a particular field, open m-Painter and find the field you would like to mask. Right click on its cell, and select &#8220;Edit Cell HTML.&#8221; Replace ${row.FIELD} with ${maskright(row.FIELD,3)}. m-Power also supports masking the left portion of your field with maskleft, instead of maskright.<br \/>\nBe sure to replace row.FIELD with your FIELD name. The second parameter available tells m-Power how many characters you wish to display in clear\/readable text.<\/p>\n<p><img decoding=\"async\" src=\"\/techblog\/images\/mask1.png\"\/><\/p>\n<p><strong>Scramble<\/strong><\/p>\n<p>To obfuscate URL parameters, open m-Painter and find the link you need to change. Find the parameter listed in your link, such as FIELD=${row.FIELD?url}. Modify the parameter, so it reads as: FIELD=${scramble(row.FIELD?url)}. Notice that the row.FIELD has been wrapped by scramble().<\/p>\n<p><img decoding=\"async\" src=\"\/techblog\/images\/scramble1.png\"\/><\/p>\n<p>Please keep in mind that utilizing this obfuscate\/scramble feature does not negate best security practices. mrc still encourages you to set up HTTPS protocol to protect data in-transit, as well as row level security so users can only access records that are pertinent to them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When creating web applications, developers occasionally wish to hide, scramble or otherwise obfuscate data that is displayed on the page and\/or sent via the URL. The main reason for this is that application developers need to protect the information being sent across the URL from being read by the end-user&#8230;.<\/p>\n","protected":false},"author":3,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[155],"ht-kb-tag":[],"class_list":["post-9980","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-security"],"_links":{"self":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/9980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9980"}],"version-history":[{"count":7,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/9980\/revisions"}],"predecessor-version":[{"id":12190,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/9980\/revisions\/12190"}],"wp:attachment":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9980"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=9980"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=9980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}