{"id":114593,"date":"2018-03-05T12:04:19","date_gmt":"2018-03-05T12:04:19","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=114593"},"modified":"2018-03-05T12:04:19","modified_gmt":"2018-03-05T12:04:19","slug":"admin-configuration-password-encryption-magento","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/","title":{"rendered":"Admin configuration password encryption and decryption in magento"},"content":{"rendered":"<p>In this article you will see\u00a0Admin configuration password encryption and decryption in magento.<\/p>\n<h3>Encryption<\/h3>\n<p>Encryption can be done either by &#8216;<em>password<\/em>&#8216; or &#8216;<em>obscure<\/em>&#8216;. In <em>password<\/em> the text will simply be encrypted and in inspect element of browser its value can be seen. But by using <em>obscure <\/em>only encrypted value can be seen.<\/p>\n<p>Use the following code to encrypt &#8211;<\/p>\n<pre class=\"brush:php\">&lt;systemconfig translate=\"label\"&gt;\r\n    &lt;label&gt;Encrypt with obscure&lt;\/label&gt;\r\n    &lt;frontend_type&gt;obscure&lt;\/frontend_type&gt;\r\n    &lt;backend_model&gt;adminhtml\/system_config_backend_encrypted&lt;\/backend_model&gt;\r\n    &lt;sort_order&gt;1&lt;\/sort_order&gt;\r\n&lt;\/systemconfig&gt;\r\n<\/pre>\n<p>Now input value in the text box and saving will encrypt the value.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-114594 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/03\/Screenshot_428.png\" alt=\"Admin configuration password encryption\" width=\"612\" height=\"32\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/03\/Screenshot_428.png 612w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/03\/Screenshot_428-250x13.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/03\/Screenshot_428-300x16.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/03\/Screenshot_428-604x32.png 604w\" sizes=\"(max-width: 612px) 100vw, 612px\" loading=\"lazy\" \/><\/p>\n<p>To use obscure in magento 2, <a href=\"https:\/\/webkul.com\/blog\/how-to-create-an-obscure-field-in-admin-configuration-in-magento2\/\"><em>click here<\/em><\/a><\/p>\n<h3>Decryption<\/h3>\n<p>decrypt()\u00a0to read the encrypted value.<\/p>\n<pre class=\"brush:php\">$encrypted_value = Mage::getStoreConfig('section\/tab\/systemconfig');\r\necho decrypt($encrypted_value);\r\n<\/pre>\n<p>section and tab are section name and tab name respectively.<\/p>\n<p>This displays the decrypted value.<\/p>\n<p>Happy coding \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article you will see\u00a0Admin configuration password encryption and decryption in magento. Encryption Encryption can be done either by &#8216;password&#8216; or &#8216;obscure&#8216;. In password the text will simply be encrypted and in inspect element of browser its value can be seen. But by using obscure only encrypted value can be seen. Use the following <a href=\"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":164,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-114593","post","type-post","status-publish","format-standard","hentry","category-magento"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Admin configuration password encryption and decryption<\/title>\n<meta name=\"description\" content=\"In this article you will see\u00a0Admin configuration password encryption and decryption in magento. It can be done by obscure and decryption by decrypt\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Admin configuration password encryption and decryption\" \/>\n<meta property=\"og:description\" content=\"In this article you will see\u00a0Admin configuration password encryption and decryption in magento. It can be done by obscure and decryption by decrypt\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-05T12:04:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/03\/Screenshot_428.png\" \/>\n<meta name=\"author\" content=\"Paul Dutta\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul Dutta\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/\"},\"author\":{\"name\":\"Paul Dutta\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/41a945ef9d13b037b8483b2340ae6748\"},\"headline\":\"Admin configuration password encryption and decryption in magento\",\"datePublished\":\"2018-03-05T12:04:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/\"},\"wordCount\":112,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/03\/Screenshot_428.png\",\"articleSection\":[\"magento\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/\",\"url\":\"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/\",\"name\":\"Admin configuration password encryption and decryption\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/03\/Screenshot_428.png\",\"datePublished\":\"2018-03-05T12:04:19+00:00\",\"description\":\"In this article you will see\u00a0Admin configuration password encryption and decryption in magento. It can be done by obscure and decryption by decrypt\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/03\/Screenshot_428.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/03\/Screenshot_428.png\",\"width\":612,\"height\":32},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Admin configuration password encryption and decryption in magento\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/41a945ef9d13b037b8483b2340ae6748\",\"name\":\"Paul Dutta\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/57d5fe0b5f0a7db7ce6bf447f403ff0c10c3d2e234e4a8398a8fe1daa71888b2?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/57d5fe0b5f0a7db7ce6bf447f403ff0c10c3d2e234e4a8398a8fe1daa71888b2?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Paul Dutta\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/paul-dutta287\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Admin configuration password encryption and decryption","description":"In this article you will see\u00a0Admin configuration password encryption and decryption in magento. It can be done by obscure and decryption by decrypt","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/","og_locale":"en_US","og_type":"article","og_title":"Admin configuration password encryption and decryption","og_description":"In this article you will see\u00a0Admin configuration password encryption and decryption in magento. It can be done by obscure and decryption by decrypt","og_url":"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2018-03-05T12:04:19+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/03\/Screenshot_428.png","type":"","width":"","height":""}],"author":"Paul Dutta","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Paul Dutta","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/"},"author":{"name":"Paul Dutta","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/41a945ef9d13b037b8483b2340ae6748"},"headline":"Admin configuration password encryption and decryption in magento","datePublished":"2018-03-05T12:04:19+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/"},"wordCount":112,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/03\/Screenshot_428.png","articleSection":["magento"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/","url":"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/","name":"Admin configuration password encryption and decryption","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/03\/Screenshot_428.png","datePublished":"2018-03-05T12:04:19+00:00","description":"In this article you will see\u00a0Admin configuration password encryption and decryption in magento. It can be done by obscure and decryption by decrypt","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/03\/Screenshot_428.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/03\/Screenshot_428.png","width":612,"height":32},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/admin-configuration-password-encryption-magento\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Admin configuration password encryption and decryption in magento"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/41a945ef9d13b037b8483b2340ae6748","name":"Paul Dutta","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/57d5fe0b5f0a7db7ce6bf447f403ff0c10c3d2e234e4a8398a8fe1daa71888b2?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/57d5fe0b5f0a7db7ce6bf447f403ff0c10c3d2e234e4a8398a8fe1daa71888b2?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Paul Dutta"},"url":"https:\/\/webkul.com\/blog\/author\/paul-dutta287\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/114593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/164"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=114593"}],"version-history":[{"count":5,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/114593\/revisions"}],"predecessor-version":[{"id":114601,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/114593\/revisions\/114601"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=114593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=114593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=114593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}