{"id":79700,"date":"2024-05-02T11:19:05","date_gmt":"2024-05-02T10:19:05","guid":{"rendered":"https:\/\/arquiconsult.com\/?p=79700"},"modified":"2024-10-23T11:20:51","modified_gmt":"2024-10-23T10:20:51","slug":"bc-secret-text-data-type","status":"publish","type":"post","link":"https:\/\/arquiconsult.com\/en\/bc-secret-text-data-type\/","title":{"rendered":"#050 BC SECRET TEXT DATA TYPE"},"content":{"rendered":"<div class=\"services_vertical horizontal_services row\" style=\"background-color: #f7f7f7; padding: 25px; border-radius: 5px; text-align: justify;\">\n<p>A new data type, <strong>SecretText<\/strong>, was created to protect credentials and other confidential text values from being revealed through debugging. The syntax of the declaration is like the Text data type, with one distinction: there are no limitations on length.<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p>SecretText can be usable as a:<\/p>\n<ul>\n<li>Variable value<\/li>\n<li>Return value<\/li>\n<li>Parameter value<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>The following methods are available on the SecretText data type:<\/p>\n<ul>\n<li>SecretStrSubstNo(Text [, SecretText,&#8230;])<\/li>\n<\/ul>\n<p>Replaces %1, %2, %3&#8230; and #1, #2, #3&#8230; fields in a string with the values you provide as optional parameters.<\/p>\n<p>&nbsp;<\/p>\n<p>The following methods are available on instances of the SecretText data type:<\/p>\n<ul>\n<li>IsEmpty()<\/li>\n<\/ul>\n<p>Returns a value indicating whether the secret text contains any content.<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Unwrap()<\/li>\n<\/ul>\n<p>Returns the text contained text inside the secret text as a plain text value. This method exists for compatibility reasons and its use is discouraged as it can lead to secret exposure.<\/p>\n<p>&nbsp;<\/p>\n<p>In the following example, the return value and parameter will not be debuggable.<\/p>\n<p>When debugging, it will be displayed as \u201c&lt;HiddenValue&gt;\u201d.<\/p>\n<p><img loading=\"lazy\" class=\"size-medium wp-image-79704 aligncenter\" src=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2024\/10\/In-the-following-example-640x298.png\" alt=\"-\" width=\"640\" height=\"298\" srcset=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2024\/10\/In-the-following-example-640x298.png 640w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2024\/10\/In-the-following-example-768x357.png 768w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2024\/10\/In-the-following-example-320x149.png 320w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2024\/10\/In-the-following-example-480x223.png 480w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2024\/10\/In-the-following-example-800x372.png 800w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2024\/10\/In-the-following-example.png 1157w\" sizes=\"(max-width: 640px) 100vw, 640px\" title=\"-\"><\/p>\n<p>&nbsp;<\/p>\n<!--themify_builder_content-->\n<div id=\"themify_builder_content-79700\" data-postid=\"79700\" class=\"themify_builder_content themify_builder_content-79700 themify_builder tf_clear\">\n    \t<!-- module_row -->\n\t<div  data-lazy=\"1\" class=\"module_row themify_builder_row tb_nus1581 tb_first tf_clearfix\">\n\t    \t\t<div class=\"row_inner col_align_top col-count-1 tf_box tf_w tf_rel\">\n\t\t\t<div  data-lazy=\"1\" class=\"module_column tb-column col-full first tb_cai8581 tf_box\">\n\t\t\t    \t        <div class=\"tb-column-inner tf_box tf_w\">\n\t\t    <!-- module text -->\n<div  class=\"module module-text tb_9tkr581 arquitps-data  \" data-lazy=\"1\">\n        <div  class=\"tb_text_wrap\">\n    <p><script>\njQuery(\".tbp_post_month:contains(Janeiro)\").html(\"January\");\n\njQuery(\".tbp_post_month:contains(Fevereiro)\").html(\"February\");\n\n\njQuery(\".tbp_post_month:contains(Mar\u00e7o)\").html(\"March\");\n\n\njQuery(\".tbp_post_month:contains(Abril)\").html(\"April\");\n\n\njQuery(\".tbp_post_month:contains(Maio)\").html(\"May\");\n\n\njQuery(\".tbp_post_month:contains(Junho)\").html(\"June\");\n\n\njQuery(\".tbp_post_month:contains(Julho)\").html(\"July\");\n\njQuery(\".tbp_post_month:contains(Agosto)\").html(\"August\");\n\njQuery(\".tbp_post_month:contains(Setembro)\").html(\"September\");\n\njQuery(\".tbp_post_month:contains(Outubro)\").html(\"October\");\n\njQuery(\".tbp_post_month:contains(Novembro)\").html(\"November\");\n\njQuery(\".tbp_post_month:contains(Dezembro)\").html(\"December\");\t\n\n\n\n<\/script><\/p>    <\/div>\n<\/div>\n<!-- \/module text -->\t        <\/div>\n\t    \t<\/div>\n\t\t    <\/div>\n\t    <!-- \/row_inner -->\n\t<\/div>\n\t<!-- \/module_row -->\n\t\t<!-- module_row -->\n\t<div  data-anchor=\"sucesso\" data-hide-anchor=\"1\" data-lazy=\"1\" class=\"module_row themify_builder_row sucesso repeat tb_has_section tb_section-sucesso tb_jdt8382 tf_clearfix\" >\n\t    \t\t<div class=\"row_inner col_align_top col-count-1 tf_box tf_w tf_rel\">\n\t\t\t<div  data-lazy=\"1\" class=\"module_column tb-column col-full first tb_9623383 tf_box\">\n\t\t\t    \t        <div class=\"tb-column-inner tf_box tf_w\">\n\t\t    <!-- module buttons -->\n<div  class=\"module module-buttons tb_147d383 buttons-horizontal transparent popmake-24705 large circle tf_textc\" data-lazy=\"1\">\n    \t<div class=\"module-buttons-item tf_inline_b\">\n\t\t\t\t\t\t\t<a href=\"#\" class=\"ui builder_button tb_default_color\" >\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"tf_inline_b tf_vmiddle\">Give as a Feedback and Suggest Questions<\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t    \t<\/div>\n\t<\/div>\n<!-- \/module buttons -->\n\t        <\/div>\n\t    \t<\/div>\n\t\t    <\/div>\n\t    <!-- \/row_inner -->\n\t<\/div>\n\t<!-- \/module_row -->\n\t<\/div>\n<!--\/themify_builder_content-->\n","protected":false},"excerpt":{"rendered":"<p>A new data type, SecretText, was created to protect credentials and other confidential text values from being revealed through debugging. The syntax of the declaration is like the Text data type, with one distinction: there are no limitations on length. &nbsp; SecretText can be usable as a: Variable value Return value Parameter value &nbsp; The [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":79709,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2099,2124],"tags":[1339,2015,2584],"acf":[],"_links":{"self":[{"href":"https:\/\/arquiconsult.com\/en\/wp-json\/wp\/v2\/posts\/79700"}],"collection":[{"href":"https:\/\/arquiconsult.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arquiconsult.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arquiconsult.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/arquiconsult.com\/en\/wp-json\/wp\/v2\/comments?post=79700"}],"version-history":[{"count":0,"href":"https:\/\/arquiconsult.com\/en\/wp-json\/wp\/v2\/posts\/79700\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arquiconsult.com\/en\/wp-json\/wp\/v2\/media\/79709"}],"wp:attachment":[{"href":"https:\/\/arquiconsult.com\/en\/wp-json\/wp\/v2\/media?parent=79700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arquiconsult.com\/en\/wp-json\/wp\/v2\/categories?post=79700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arquiconsult.com\/en\/wp-json\/wp\/v2\/tags?post=79700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}