예제 #1
0
파일: ZCrypt.php 프로젝트: kimthangatm/zcms
 /**
  * @param string $encryptKey
  * @return ZCrypt
  */
 public static function getInstance($encryptKey = null)
 {
     if (!is_object(self::$instance)) {
         self::$instance = new ZCrypt($encryptKey);
         self::$instance->setPadding(Crypt::PADDING_ZERO);
     }
     return self::$instance;
 }