code: public function decrypt(string $data, string $key = null)
      {
          $key = $this->createKey($key);
          $data = unserialize(Crypto::decrypt($data, $key));
  
          return $data;
      }
docs: Decrypt data using secret key
  
  @param string $data
  @param string $key
  @return mixed