key = openssl_random_pseudo_bytes($this->keyLength); if (false === $this->key) { throw new AesException((string) openssl_error_string()); } } /** * @inheritdoc */ public function getValue() { return $this->key; } }