示例#1
0
 /**
  * @return MWP_Crypter_Interface
  */
 public function createCrypter()
 {
     if ($this->getSystemEnvironment()->isOpenSslLibraryEnabled()) {
         return MWP_Crypter_Factory::createOpenSslCrypter();
     }
     return MWP_Crypter_Factory::createPhpSecLibCrypter();
 }
示例#2
0
 /**
  * @return MWP_Crypter_Interface
  */
 public function createCrypter()
 {
     if ($this->getParameter('prefer_phpseclib')) {
         return MWP_Crypter_Factory::createPhpSecLibCrypter();
     }
     return MWP_Crypter_Factory::createCrypter();
 }