public function getContent(Document $document, User $requester, $passPhrase) { $share = $document->getShareOf($requester); $encryptionKey = $this->getEncryptionKey($share, $passPhrase); return \Crypto::Decrypt(base64_decode($document->getEncryptedContent()), $encryptionKey); }