|
|
| RealPass () |
| | Construct a RealPass instance.
|
|
| ~RealPass () override=default |
| | Destructor.
|
| void | GitInit () override |
| | Initialize Git repository in password store.
|
| void | GitPull () override |
| | Pull changes from remote.
|
| void | GitPull_b () override |
| | Pull with rebase.
|
| void | GitPush () override |
| | Push changes to remote.
|
| void | Show (QString file) override |
| | Show decrypted password.
|
| void | OtpGenerate (QString file) override |
| | Generate OTP code.
|
| void | Insert (QString file, QString newValue, bool overwrite=false) override |
| | Insert new password.
|
| void | Remove (QString file, bool isDir=false) override |
| | Remove password or directory.
|
| void | Init (QString path, const QList< UserInfo > &users) override |
| | Initialize password store.
|
| void | Move (const QString src, const QString dest, const bool force=false) override |
| | Move password file or directory.
|
| void | Copy (const QString src, const QString dest, const bool force=false) override |
| | Copy password file or directory.
|
| void | Grep (QString pattern, bool caseInsensitive=false) override |
| | Search password content via 'pass grep'.
|
|
| Pass () |
| | Construct a Pass instance.
|
|
void | init () |
| | Initialize the Pass instance.
|
| virtual auto | generatePassword (unsigned int length, const QString &charset) -> QString |
| | Generate random password.
|
| void | GenerateGPGKeys (QString batch) |
| | Generate GPG keys using batch script.
|
| auto | listKeys (QStringList keystrings, bool secret=false) -> QList< UserInfo > |
| | List GPG keys matching patterns.
|
| auto | listKeys (const QString &keystring="", bool secret=false) -> QList< UserInfo > |
| | List GPG keys.
|
|
void | updateEnv () |
| | Update environment for subprocesses.
|
|
|
void | error (QProcess::ProcessError) |
| | Emitted when a process error occurs.
|
|
void | startingExecuteWrapper () |
| | Emitted before executing a command.
|
| void | statusMsg (const QString &msg, int timeout) |
| | Emit status message.
|
| void | critical (const QString &title, const QString &message) |
| | Emit critical error.
|
| void | processErrorExit (int exitCode, const QString &err) |
| | Emitted on process error exit.
|
| void | finishedAny (const QString &out, const QString &err) |
| | Emitted when any operation finishes.
|
| void | finishedGitInit (const QString &out, const QString &err) |
| | Emitted when Git init finishes.
|
| void | finishedGitPull (const QString &out, const QString &err) |
| | Emitted when Git pull finishes.
|
| void | finishedGitPush (const QString &out, const QString &err) |
| | Emitted when Git push finishes.
|
| void | finishedShow (const QString &out) |
| | Emitted when show finishes.
|
| void | finishedOtpGenerate (const QString &out) |
| | Emitted when OTP generation finishes.
|
| void | finishedInsert (const QString &out, const QString &err) |
| | Emitted when insert finishes.
|
| void | finishedRemove (const QString &out, const QString &err) |
| | Emitted when remove finishes.
|
| void | finishedInit (const QString &out, const QString &err) |
| | Emitted when init finishes.
|
| void | finishedMove (const QString &out, const QString &err) |
| | Emitted when move finishes.
|
| void | finishedCopy (const QString &out, const QString &err) |
| | Emitted when copy finishes.
|
| void | finishedGenerate (const QString &out, const QString &err) |
| | Emitted when generate finishes.
|
| void | finishedGenerateGPGKeys (const QString &out, const QString &err) |
| | Emitted when GPG key generation finishes.
|
| void | finishedGrep (const QList< QPair< QString, QStringList > > &results) |
| | Emitted when grep finishes with matching results.
|
| static bool | gpgSupportsEd25519 () |
| | Check if GPG supports Ed25519 encryption.
|
| static QString | getDefaultKeyTemplate () |
| | Get default key template for new GPG keys.
|
| static auto | resolveGpgconfCommand (const QString &gpgPath) -> ResolvedGpgconfCommand |
| | Resolve the gpgconf command to kill agents.
|
| static auto | getGpgIdPath (const QString &for_file) -> QString |
| | Get .gpg-id file path for a password file.
|
| static auto | getRecipientList (const QString &for_file) -> QStringList |
| | Get list of recipients for a password file.
|
| static auto | getRecipientString (const QString &for_file, const QString &separator=" ", int *count=nullptr) -> QStringList |
| | Get recipients as string.
|
| using | PROCESS = Enums::PROCESS |
| | Alias for Enums::PROCESS used throughout this class.
|
| virtual void | finished (int id, int exitCode, const QString &out, const QString &err) |
| | Handle process completion.
|
| void | executeWrapper (PROCESS id, const QString &app, const QStringList &args, bool readStdout=true, bool readStderr=true) |
| | Execute external wrapper command.
|
| auto | generateRandomPassword (const QString &charset, unsigned int length) -> QString |
| | Generate random password from charset.
|
| auto | boundedRandom (quint32 bound) -> quint32 |
| | Generate random number in range.
|
| void | setEnvVar (const QString &key, const QString &value) |
| | Set or remove an environment variable.
|
| virtual void | executeWrapper (PROCESS id, const QString &app, const QStringList &args, QString input, bool readStdout=true, bool readStderr=true) |
| | Execute wrapper with input.
|
| Executor | exec |
| | Internal command executor for queuing and running subprocesses.
|
Implementation of Pass that wraps the 'pass' command-line tool.
RealPass delegates all password store operations to the external 'pass' utility. It provides a Qt-native interface while handling:
- Git integration (init, pull, push)
- Password CRUD (show, insert, remove, move, copy)
- OTP generation
- Store initialization with GPG keys
This is the primary implementation when 'pass' is available on the system.
Definition at line 21 of file realpass.h.