2021-09-24

magento如何加密连接

港勤跨境财税 港勤跨境财税

Magento后台配置设置的时候有时候须要加密保留,如一些症结的账号密码就不应当明文保留到数据库和显示在前台。那么你知道magento如何加密衔接吗?

magento如何加密连接

<app_secret translate="label">

<label>app_secret</label>

<frontend_type>password</frontend_type>

<backend_model>adminhtml/system_config_backend_encrypted</backend_model>

<sort_order>2</sort_order>

<show_in_default>1</show_in_default>

<show_in_website>1</show_in_website>

<show_in_store>0</show_in_store>

</app_secret>

获取值得代码 $appSecret = Mage::getStoreConfig('facebook_login/setting/app_secret', $storeId);

直接拿getStoreConfig 获取到的值是经过加密的,还须要解密能力用。 解密代码$appSecret = Mage::helper('core')->decrypt($appSecret);

配置文件中设置<frontend_type>password</frontend_type,前台可以看到字符。 frontend-type-password 不显示配置文件中设置<frontend_type>obscure</frontend_type>即可。

部分文章大数据机器发布,如有侵权请联系删除!

详情可添加微信好友,获取相关业务资料。

跨境电商交流群

加入我们

上篇

打造出优质亚马逊listing的几点要素

下篇

亚马逊日本站促销积分介绍

返回上页

离岸资讯

您好,请问是想咨询跨境电商问题吗?

点 客服 客服背景一 客服背景二 客服背景三