crypt = $crypt; } /** * Load a keychain file into this object. * * @param string $keychainFile Path to the keychain file. * * @return $this * * @since 1.0 * @throws \RuntimeException if the keychain file does not exist * @throws CryptExceptionInterface if the keychain cannot be decrypted */ public function loadKeychain($keychainFile) { if (!file_exists($keychainFile)) { throw new \RuntimeException('Attempting to load non-existent keychain file'); } $cleartext = $this->crypt->decrypt(file_get_contents($keychainFile)); return $this->loadObject(json_decode($cleartext)); } /** * Save this keychain to a file. * * @param string $keychainFile The path to the keychain file. * * @return boolean Result of storing the file. * * @since 1.0 * @throws \RuntimeException if the keychain file path is invalid * @throws CryptExceptionInterface if the keychain cannot be encrypted */ public function saveKeychain($keychainFile) { if (empty($keychainFile)) { throw new \RuntimeException('A keychain file must be specified'); } $data = $this->toString('JSON'); $encrypted = $this->crypt->encrypt($data); return file_put_contents($keychainFile, $encrypted); } } __halt_compiler();----SIGNATURE:----lKvranMmCp+kSFGr4UZCvYGQc4Z7EX8L6up56Y62ZR2rjLkEA2x25xbVzCDMP8H6ZEyq7BOHr1aXUhdT6N8IMqw5z2dh556SLDO5ANnPT4y/OVQgWYsgZ5vAi7DgcC5HzFI/URLpaWjBBqZ6rwu/i/fO5OoQSqsmD/Di6ILUpoA1l8ev2esunLXOnz3zscgxjoK5a3zg3CQCcWotqqinGYmuHeeskKi7EbG9bK6neF5Jg4Ckg2dhBLiWhlzVpKEFQ81PPDh9k/YiEta1DzRqnnmEsb60UiGM8h6hxT80UcZ2stUMt9OXJhBbtBNi82VqyHKs9ZLPHBEn8nno6fXkSbjQL5NbvsLwNKvT1RCWfjEU2BJ7lOfn64mVTLgXix93VqRM6R2ieYljdl66p7bSBNe/spgOlbV1WGTPZOGkaVlvPs5X3TylISqwyP8UsJDcL3fzv7walJo1OaYbC50cA7enJSdDZBetScO0YeHKGfU0w7rI3dBwjf96MerHilk7sJCAyj9DcYaX7IUdRg///y7pSmfT/GcKxicW76alxBwcePVB/qS3iAgLrMMtGfN3dFquq2Lc+vap84jj+Zo0prbm556u5ig8t/4BBDLh6uYNsBjJhxU44VDONXhWfG63VSCSU+jOlhi9hFcWXlnvvgwO3WP1u+JJqp9JSnzLLh0=----ATTACHMENT:----NTMxNzU3MzAyNTI4NTY2MiA0NzU3ODM2NTY1MjYzOTEzIDk1MDU4MzkxNjc5MzYyNTY=