![]() |
Limo
A simple mod manager
|
Dialog for entering the password used to encrypt the NexusMods API key. More...
#include <enterapipwdialog.h>
Public Member Functions | |
EnterApiPwDialog (const std::string &cipher, const std::string &nonce, const std::string &tag, QWidget *parent=nullptr) | |
Initializes the dialog with data needed for decryption. | |
~EnterApiPwDialog () | |
Deletes the UI. | |
std::string | getApiKey () const |
Returns the decrypted API key, if encryption was successful. Else: Returns an empty string. | |
bool | wasSuccessful () const |
Indicates whether decryption was successful. | |
Dialog for entering the password used to encrypt the NexusMods API key.
|
explicit |
Initializes the dialog with data needed for decryption.
cipher | Cypher text of the API key. |
nonce | AES-GCM nonce used during encryption. |
tag | AES-GCM authorization tag generated during encryption. |
parent | Parent for this widget, this is passed to the constructor of QDialog. |
std::string EnterApiPwDialog::getApiKey | ( | ) | const |
Returns the decrypted API key, if encryption was successful. Else: Returns an empty string.
bool EnterApiPwDialog::wasSuccessful | ( | ) | const |
Indicates whether decryption was successful.