/** * [isValid description]. * * @param [type] $key [description] * * @return bool [description] */ public function isValid($key = null) { if (parent::isValid()) { if ($key && parent::getKey() && parent::getKey() == $key) { return true; } } return false; }
/** * [generateKey description]. * * @param [type] $key [description] * @param [type] $fileName [description] * * @return [type] [description] */ public function generateKey($key, $fileName = null) { if ($key) { $key = $this->chiper->encrypt($key); } return parent::generateKey($key, $fileName); }