Esempio n. 1
0
 /**
  * 获取可逆的加密算法管理类
  * @return \tfc\saf\Mef
  */
 public function getMef()
 {
     if ($this->_mef === null) {
         $this->_mef = Mef::getInstance($this->getKeyName());
     }
     return $this->_mef;
 }
Esempio n. 2
0
 /**
  * 构造方法:初始化加密算法管理类、业务处理类
  */
 public function __construct()
 {
     $this->_mef = Mef::getInstance(self::CLUSTER_NAME);
     $this->_portal = new Portal();
 }