コード例 #1
0
ファイル: DocumentService.php プロジェクト: trivago-tgoik/kis
 protected function getEncryptionKey(Share $share, $passPhrase)
 {
     return KeyGen::decrypt($share->getEncryptedKey(), $share->getUser()->getPrivateKey(), $passPhrase);
 }
コード例 #2
0
ファイル: User.php プロジェクト: trivago-tgoik/kis
 public function setPlainPassword($password)
 {
     $keyPair = KeyGen::generateKeyPair($password);
     $this->setPrivateKey($keyPair->privateKey);
     $this->setPublicKey($keyPair->publicKey);
     parent::setPlainPassword($password);
 }