public function getEncriptedIdentity() { $cipher = new Cipher($this->passphrase); $decryptedtext = $this->getIdentityData(); $encryptedtext = $cipher->encryptJson($decryptedtext); return $encryptedtext; }