From 11a6fb91423f94b1424d027cdd7705d8ec11144c Mon Sep 17 00:00:00 2001 From: Stefan Brand Date: Mon, 20 Feb 2023 16:48:52 +0100 Subject: [PATCH] Add Error Crude Handling for Encryption/Decryption --- qml/pages/ExportPage.qml | 13 +++++--- src/QCipher/src/qcipher.cpp | 21 +++++++++---- translations/harbour-sailotp-de.ts | 43 ++++++++++++++------------- translations/harbour-sailotp-es.ts | 43 ++++++++++++++------------- translations/harbour-sailotp-fi.ts | 43 ++++++++++++++------------- translations/harbour-sailotp-fr.ts | 43 ++++++++++++++------------- translations/harbour-sailotp-hu.ts | 43 ++++++++++++++------------- translations/harbour-sailotp-it.ts | 43 ++++++++++++++------------- translations/harbour-sailotp-nl.ts | 43 ++++++++++++++------------- translations/harbour-sailotp-pt_BR.ts | 43 ++++++++++++++------------- translations/harbour-sailotp-ru.ts | 43 ++++++++++++++------------- translations/harbour-sailotp-sv.ts | 43 ++++++++++++++------------- translations/harbour-sailotp-zh_CN.ts | 43 ++++++++++++++------------- translations/harbour-sailotp.ts | 43 ++++++++++++++------------- 14 files changed, 288 insertions(+), 262 deletions(-) diff --git a/qml/pages/ExportPage.qml b/qml/pages/ExportPage.qml index 637ca90..8af51f6 100644 --- a/qml/pages/ExportPage.qml +++ b/qml/pages/ExportPage.qml @@ -107,6 +107,7 @@ Dialog { } } + // FilePicker for the Input File Component { id: filePickerPage FilePickerPage { @@ -234,13 +235,17 @@ Dialog { if (plainText != "") { try { chipherText = cipher.encrypt(plainText, filePassword.text); - if (!exportFile.write(chipherText)) { - notify.show(qsTr("Error writing to file ")+ fileName.text, 4000); + if (chipherText != "") { + if (!exportFile.write(chipherText)) { + notify.show(qsTr("Error writing to file ")+ fileName.text, 4000); + } else { + notify.show(qsTr("Token Database exported to ")+ fileName.text, 4000); + } } else { - notify.show(qsTr("Token Database exported to ")+ fileName.text, 4000); + notify.show(qsTr("Could not encrypt tokens. Error: "), 4000); } } catch(e) { - notify.show(qsTr("Could not encrypt tokens. Error: "), 4000); + notify.show(qsTr("Could not encrypt tokens. Error: ") + e, 4000); } } else { notify.show(qsTr("Could not read tokens from Database"), 4000); diff --git a/src/QCipher/src/qcipher.cpp b/src/QCipher/src/qcipher.cpp index 84b698b..8758bce 100644 --- a/src/QCipher/src/qcipher.cpp +++ b/src/QCipher/src/qcipher.cpp @@ -7,14 +7,23 @@ QCipher::QCipher(QObject *parent) : QObject(parent) QString QCipher::encrypt(QString plaintext, QString pass) { - std::string enc; - enc = c.encrypt(plaintext.toStdString(), pass.toStdString()); - return QString::fromUtf8(enc.c_str()); + try { + std::string enc; + enc = c.encrypt(plaintext.toStdString(), pass.toStdString()); + return QString::fromUtf8(enc.c_str()); + } catch (...) { + return ""; + } + } QString QCipher::decrypt(QString ciphertext, QString pass) { - std::string dec; - dec = c.decrypt(ciphertext.toStdString(), pass.toStdString()); - return QString::fromUtf8(dec.c_str()); + try { + std::string dec; + dec = c.decrypt(ciphertext.toStdString(), pass.toStdString()); + return QString::fromUtf8(dec.c_str()); + } catch (...) { + return ""; + } }; diff --git a/translations/harbour-sailotp-de.ts b/translations/harbour-sailotp-de.ts index d83425d..4beddf1 100644 --- a/translations/harbour-sailotp-de.ts +++ b/translations/harbour-sailotp-de.ts @@ -189,108 +189,109 @@ - + Export Export - + Import Import - + Filename Dateiname - + File to import Aus Datei importieren - + File to export In Datei exportieren - + Overwrite existing Existierende überschreiben - + Password Passwort - + Password for the file Passwort für die Datei - + Passwords don't match! Passwörter nicht identisch! - + Passwords match! Passwörter identisch! - + Repeated Password for the file Passwort wiederholen - + Here you can Import Tokens from a file. Put in the file location and the password you used on export. Pull left to start the import. Hier können Tokens aus einer Datei importiert werden. Gib die Datei und das beim Export gewählte Passwort ein. Nach links ziehen um zu starten. - + Here you can export Tokens to a file. The exported file will be encrypted with AES-256-CBC and Base64 encoded. Choose a strong password, the file will contain the secrets used to generate the Tokens for your accounts. Pull left to start the export. Hier können Tokens in eine Datei exportiert werden. Die Datei wird mit AES-256-CBC verschlüsselt und Base64-kodiert. Wähle ein starkes Passwort, die Datei enthält die geheimen Schlüssel zur Erzeugung der Tokens für deine Accounts. Nach links ziehen um zu starten. - + To view the content of the export file outside of SailOTP use the following openssl command: Mit folgendem Openssl-Befehl kann der Inhalt der Exportdatei außerhalb von SailOTP angezeigt werden: - + Error writing to file Fehler beim Schreiben der Datei - + Token Database exported to Datenbank exportiert nach - + + Could not encrypt tokens. Error: Fehler beim Verschlüsseln. Fehler: - + Could not read tokens from Database Datenbank konnte nicht gelesen werden - + Tokens imported from Tokens importiert aus - + Unable to decrypt file, did you use the right password? Fehler beim entschlüsseln, falsches Passwort? - + Could not read from file Datei konnte nicht gelesen werden diff --git a/translations/harbour-sailotp-es.ts b/translations/harbour-sailotp-es.ts index cb172c8..1cfce53 100644 --- a/translations/harbour-sailotp-es.ts +++ b/translations/harbour-sailotp-es.ts @@ -189,108 +189,109 @@ - + Export Exportar - + Import Importar - + Filename Nombre del fichero - + File to import Fichero a importar - + File to export Fichero a exportar - + Overwrite existing Sobreescribir existente - + Password Contraseña - + Password for the file Contraseña para el fichero - + Passwords don't match! ¡Las contraseñas no coinciden! - + Passwords match! ¡Las contraseñas coinciden! - + Repeated Password for the file Contraseña repetida para el archivo - + Here you can Import Tokens from a file. Put in the file location and the password you used on export. Pull left to start the import. Aquí puede Importar Tokens desde un fichero. Ponga la localización del fichero y la contraseña utilizada en la exportación. Tire hacia la izquierda para comenzar la importación. - + Here you can export Tokens to a file. The exported file will be encrypted with AES-256-CBC and Base64 encoded. Choose a strong password, the file will contain the secrets used to generate the Tokens for your accounts. Pull left to start the export. Aquí puede exportar Tokens a un fichero. El fichero exportado será encriptado con AES-256-CBC y codificado en Base64. Escoja una contraseña segura, el fichero contendrá las cadenas secretas utilizadas para la generación de los Tokens. Tire hacia la izquierda para comenzar la exportación. - + To view the content of the export file outside of SailOTP use the following openssl command: Para ver los contenidos del fichero de exportación fuera de SailOTP utilize el siguiente comando openssl: - + Error writing to file Error escribiendo el fichero - + Token Database exported to Base de datos de Tokens exportada en - + + Could not encrypt tokens. Error: No se ha podido encriptar los tokens. Error: - + Could not read tokens from Database No se ha podido leer los tokens desde la Base de datos - + Tokens imported from Tokens importados desde - + Unable to decrypt file, did you use the right password? No se ha podido desencriptar el fichero, ¿ha utilizado el password correcto? - + Could not read from file No se ha podido leer desde el fichero diff --git a/translations/harbour-sailotp-fi.ts b/translations/harbour-sailotp-fi.ts index 2ba6607..42d3220 100644 --- a/translations/harbour-sailotp-fi.ts +++ b/translations/harbour-sailotp-fi.ts @@ -189,108 +189,109 @@ - + Export Vie - + Import Tuo - + Filename Tiedoston nimi - + File to import Tuotava tiedosto - + File to export Vietävä tiedosto - + Overwrite existing Ylikirjoita tiedosto - + Password Salasana - + Password for the file Tiedoston salasana - + Passwords don't match! Salasanat eivät täsmää! - + Passwords match! Salasanat täsmäävät! - + Repeated Password for the file Tiedoston salasanan vahvistus - + Here you can Import Tokens from a file. Put in the file location and the password you used on export. Pull left to start the import. Voit tuoda tunnuksia tiedostosta. Anna tiedoston polku sekä salasana, jonka annoit vientiä tehdessäsi. Pyyhkäise vasemmalle aloittaaksesi tuonnin. - + Here you can export Tokens to a file. The exported file will be encrypted with AES-256-CBC and Base64 encoded. Choose a strong password, the file will contain the secrets used to generate the Tokens for your accounts. Pull left to start the export. Voit viedä tunnukset tiedostoon. Vientitiedosto salataan AES-256-CBC-salauksella ja koodataan Base64-koodauksella. Valitse vahva salasana, koska tiedosto sisältää käyttäjätiliesi tunnukset. Pyyhkäise vasemmalle aloittaaksesi viennin. - + To view the content of the export file outside of SailOTP use the following openssl command: Jos haluat tarkastella vientitiedoston sisältöä SailOTP:n ulkopuolella, käytä seuraavaa OpenSSL-komentoa: - + Error writing to file Virhe kirjoitettaessa tiedostoa - + Token Database exported to Tunnustietokanta viety tiedostoon - + + Could not encrypt tokens. Error: Tunnusten salaaminen epäonnistui. Virhe: - + Could not read tokens from Database Tunnusten lukeminen tietokannasta epäonnistui - + Tokens imported from Tunnukset tuotu tiedostosta - + Unable to decrypt file, did you use the right password? Tiedoston salauksen purkaminen epäonnistui. Tarkista salasana. - + Could not read from file Tiedoston lukeminen epäonnistui diff --git a/translations/harbour-sailotp-fr.ts b/translations/harbour-sailotp-fr.ts index eb54115..d3b1b6d 100644 --- a/translations/harbour-sailotp-fr.ts +++ b/translations/harbour-sailotp-fr.ts @@ -189,109 +189,110 @@ - + Import Importer - + Export Exporter - + Filename Nom du fichier - + File to import Fichier à importer - + File to export Fichier à exporter - + Overwrite existing Écraser un fichier existant - + Password Mot de passe - + Password for the file Mot de passe pour le fichier - + Passwords don't match! Les mots de passe ne correspondent pas ! - + Passwords match! Les mots de passe correspondent ! - + Repeated Password for the file Confirmation du mot de passe pour le fichier - + Here you can Import Tokens from a file. Put in the file location and the password you used on export. Pull left to start the import. Vous pouvez ici importer les paramètres d'OTP depuis un fichier. Indiquez le fichier et le mot de passe utilisés lors de l'export. Glissez vers la droite pour démarrer l'import. - + Here you can export Tokens to a file. The exported file will be encrypted with AES-256-CBC and Base64 encoded. Choose a strong password, the file will contain the secrets used to generate the Tokens for your accounts. Pull left to start the export. Vous pouvez ici exporter les paramètres d'OTP vers un fichier. Ce fichier sera chiffré en AES-256-CBC et encodé en Base64. Ce fichier contiendra les secrets utilisés pour générer les OTP de vos comptes, choisissez donc un mot de passe fort. Glissez vers la droite pour démarrer l'export. - + To view the content of the export file outside of SailOTP use the following openssl command: Translated using Google Translate Pour afficher le contenu du fichier d'exportation en dehors de SailOTP, utilisez la commande openssl suivante: - + Error writing to file Erreur lors de l'écriture du fichier - + Token Database exported to Base des paramètres d'OTP exportée vers - + + Could not encrypt tokens. Error: Impossible de chiffrer les paramètes d'OTP. Erreur : - + Could not read tokens from Database Impossible de lire les paramètres d'OTP depuis la base de données - + Tokens imported from Paramètres d'OTP importés depuis - + Unable to decrypt file, did you use the right password? Impossible de déchiffrer le fichier, utilisez-vous le bon mot de passe ? - + Could not read from file Impossible de lire depuis le fichier diff --git a/translations/harbour-sailotp-hu.ts b/translations/harbour-sailotp-hu.ts index 2e70ebf..f7a53b7 100644 --- a/translations/harbour-sailotp-hu.ts +++ b/translations/harbour-sailotp-hu.ts @@ -189,108 +189,109 @@ - + Export Exportálás - + Import Importálás - + Filename Fájlnév - + File to import Importálandó fájl - + File to export Exportálandó fájl - + Overwrite existing Meglévő felülírása - + Password Jelszó - + Password for the file Jelszó a fájlhoz - + Passwords don't match! A jelszavak nem egyeznek! - + Passwords match! A jelszavak egyeznek! - + Repeated Password for the file Megismételt jelszó a fájlhoz - + Here you can Import Tokens from a file. Put in the file location and the password you used on export. Pull left to start the import. Itt tudsz tokeneket importálni egy fájlból. Írd be a fájl helyét, és az exportáláskor használt jelszót. Húzd balra az importálás indításához. - + Here you can export Tokens to a file. The exported file will be encrypted with AES-256-CBC and Base64 encoded. Choose a strong password, the file will contain the secrets used to generate the Tokens for your accounts. Pull left to start the export. Itt tudsz tokeneket exportálni egy fájlba. Az exportált fájl AES-256-CBC és Base64 kódolással lesz ellátva. Válassz egy erős jelszót, a fájl a fiókjaidoz létrehozandó tokenehez tartozó jelszavakat fogja tartalmazni. Húzd balra az exportálás indításához. - + To view the content of the export file outside of SailOTP use the following openssl command: Az exportfájl tartalmának a SailOTP-n kívüli megtekintéséhez használd a következő openssl parancsokat: - + Error writing to file Hiba a fájlba íráskor - + Token Database exported to Tokenadatbázis exportálva ide: - + + Could not encrypt tokens. Error: A tokenek nem titkosíthatók. Hiba: - + Could not read tokens from Database A tokenek nem olvashatók az adatbázisból - + Tokens imported from Tokenek importálva innen: - + Unable to decrypt file, did you use the right password? Nem lehet dekódolni a fájlt, a helyes jelszót használtad? - + Could not read from file Nem olvasható a fájlból diff --git a/translations/harbour-sailotp-it.ts b/translations/harbour-sailotp-it.ts index 8c54300..0132774 100644 --- a/translations/harbour-sailotp-it.ts +++ b/translations/harbour-sailotp-it.ts @@ -189,108 +189,109 @@ - + Export Esporta - + Import Importa - + Filename Nome file - + File to import File da importare - + File to export File da esportare - + Overwrite existing Sovrascrivi esistente - + Password Password - + Password for the file Password per il file - + Passwords don't match! Le password non corrispondono! - + Passwords match! Le password corrispondono! - + Repeated Password for the file Password Ripetuta per il file - + Here you can Import Tokens from a file. Put in the file location and the password you used on export. Pull left to start the import. Da qua puoi Importare i Token da un file. Inserisci la posizione del file e la password usata nell'esportazione. Scorri a sinistra per iniziare l'importazione. - + Here you can export Tokens to a file. The exported file will be encrypted with AES-256-CBC and Base64 encoded. Choose a strong password, the file will contain the secrets used to generate the Tokens for your accounts. Pull left to start the export. Da qua puoi Esportare i Token su un file. Il file esportato sarà criptato con AES-256-CBC e codificato Base64. Scegli una password forte, il file conterrà i segreti usati per generare i Token per i tuoi account. Scorri a sinistra per iniziare l'esportazione. - + To view the content of the export file outside of SailOTP use the following openssl command: Per vedere il contenuto del file esportato al di fuori di SailORP usa il seguente comando openssl: - + Error writing to file Errore in scrittura del file - + Token Database exported to Database dei Toen esportato su - + + Could not encrypt tokens. Error: Impossibile criptare i token. Errore: - + Could not read tokens from Database Impossibile leggere i token dal Database - + Tokens imported from Token importati da - + Unable to decrypt file, did you use the right password? Non ho potuto decrittare il file, hai scritto la password correttamente? - + Could not read from file Impossibile leggere dal file diff --git a/translations/harbour-sailotp-nl.ts b/translations/harbour-sailotp-nl.ts index f4a9db1..0ac14d3 100644 --- a/translations/harbour-sailotp-nl.ts +++ b/translations/harbour-sailotp-nl.ts @@ -189,108 +189,109 @@ - + Export Exporteer - + Import Importeer - + Filename Bestandsnaam - + File to import Bestand om te importeren - + File to export Bestand om te exporteren - + Overwrite existing Bestaand bestand overschrijven - + Password Wachtwoord - + Password for the file Wachtwoord voor het bestand - + Passwords don't match! Wachtwoorden komen niet overeen! - + Passwords match! Wachtwoorden komen overeen! - + Repeated Password for the file Herhaal wachtwoord voor het bestand - + Here you can Import Tokens from a file. Put in the file location and the password you used on export. Pull left to start the import. Hier kunt u tokens uit een bestand importeren. Geef de bestandslocatie en het wachtwoord dat u bij export hebt gebruikt op. Veeg naar links om het importeren te starten. - + Here you can export Tokens to a file. The exported file will be encrypted with AES-256-CBC and Base64 encoded. Choose a strong password, the file will contain the secrets used to generate the Tokens for your accounts. Pull left to start the export. Hier kun je tokens naar een bestand exporteren. Het geexporteerde bestand wordt versleuteld met AES-256-CBC en is Base64-gecodeerd. Kies een sterk wachtwoord, het bestand bevat de geheimen die worden gebruikt om de tokens voor uw accounts te genereren. Veeg naar links om de export te starten. - + To view the content of the export file outside of SailOTP use the following openssl command: Als u de inhoud van het exportbestand buiten SailOTP wilt bekijken, gebruikt u de volgende OpenSSL-opdracht: - + Error writing to file Fout bij schrijven naar bestand - + Token Database exported to Token Database geexporteerd naar - + + Could not encrypt tokens. Error: Kan tokens niet coderen. Fout: - + Could not read tokens from Database Kan geen tokens uit database lezen - + Tokens imported from Tokens geimporteerd uit - + Unable to decrypt file, did you use the right password? Kan het bestand niet ontsleutelen, heeft u het juiste wachtwoord gebruikt? - + Could not read from file Kan niet lezen uit bestand diff --git a/translations/harbour-sailotp-pt_BR.ts b/translations/harbour-sailotp-pt_BR.ts index 5f20907..4dba3b4 100644 --- a/translations/harbour-sailotp-pt_BR.ts +++ b/translations/harbour-sailotp-pt_BR.ts @@ -189,108 +189,109 @@ - + Export Exportar - + Import Importar - + Filename Nome do arquivo - + File to import Arquivo para importar - + File to export Arquivo para exportar - + Overwrite existing Sobrescrever existente - + Password Senha - + Password for the file Insira a senha do arquivo aqui - + Passwords don't match! As senhas não coincidem! - + Passwords match! Senha correta - + Repeated Password for the file Confirme a senha do arquivo aqui - + Here you can Import Tokens from a file. Put in the file location and the password you used on export. Pull left to start the import. Importe Tokens salvos de um arquivo. Insira a localização do arquivo e a senha usada durante a exportação. Deslize para a esquerda para iniciar a importação. - + Here you can export Tokens to a file. The exported file will be encrypted with AES-256-CBC and Base64 encoded. Choose a strong password, the file will contain the secrets used to generate the Tokens for your accounts. Pull left to start the export. Exporte os Tokens para um arquivo. O arquivo exportado será criptografado com AES-256-CBC e codificado em Base64. Escolha uma senha forte pois o arquivo conterá todos os segredos usados para gerar os Tokens disponíveis. Deslize para a esquerda para iniciar o processo. - + To view the content of the export file outside of SailOTP use the following openssl command: Para visualizar o conteúdo do arquivo expotado fora do SailOTP use o seguinte comando openssl: - + Error writing to file Não foi possível escrever no arquivo - + Token Database exported to Base de dados dos Tokens exportada para - + + Could not encrypt tokens. Error: Não foi possível criptografar Tokens. Erro: - + Could not read tokens from Database Não foi possível ler Tokens da base de dados - + Tokens imported from Tokens importados de - + Unable to decrypt file, did you use the right password? Não foi possível decriptografar arquivo, por favor cheque a senha. - + Could not read from file Não foi possível ler arquivo diff --git a/translations/harbour-sailotp-ru.ts b/translations/harbour-sailotp-ru.ts index 3eb5232..64e45cb 100644 --- a/translations/harbour-sailotp-ru.ts +++ b/translations/harbour-sailotp-ru.ts @@ -189,109 +189,110 @@ - + Export Экспорт - + Import Импорт - + Filename Имя файла - + File to import Файл для импорта - + File to export Файл для экспорта - + Overwrite existing Перезаписать существующий - + Password Пароль - + Password for the file Пароль для файла - + Passwords don't match! Пароли не совпадают! - + Passwords match! Пароли совпадают! - + Repeated Password for the file Повторный пароль для файла - + Here you can Import Tokens from a file. Put in the file location and the password you used on export. Pull left to start the import. Здесь можно импортировать токены из файла. Введите путь к файлу и пароль, использованный при экспорте. Потяните влево чтобы начать импорт. - + Here you can export Tokens to a file. The exported file will be encrypted with AES-256-CBC and Base64 encoded. Choose a strong password, the file will contain the secrets used to generate the Tokens for your accounts. Pull left to start the export. Здесь можно экспортировать токены в файл. Экспортированный файл будет зашифрован с использованием AES-256-CBC и кодирован в Base64. Выберите сильный пароль — файл будет содержать секреты, использованные для генерации токенов для Ваших аккаунтов. Потяните влево чтобы начать экспорт. - + To view the content of the export file outside of SailOTP use the following openssl command: Translated using Google Translate Чтобы просмотреть содержимое файла экспорта за пределами SailOTP, используйте следующую команду openssl: - + Error writing to file Ошибка при записи в файл - + Token Database exported to База данных токенов экспортирована в - + + Could not encrypt tokens. Error: Не удалось зашифровать токены. Ошибка: - + Could not read tokens from Database Не удалось прочесть токены из базы данных - + Tokens imported from Токены импортированы из - + Unable to decrypt file, did you use the right password? Не удалось расшифровать файл. Был ли введен правильный пароль? - + Could not read from file Не удалось прочесть из файла diff --git a/translations/harbour-sailotp-sv.ts b/translations/harbour-sailotp-sv.ts index 58302cf..4fed407 100644 --- a/translations/harbour-sailotp-sv.ts +++ b/translations/harbour-sailotp-sv.ts @@ -189,108 +189,109 @@ - + Export Exportera - + Import Importera - + Filename Filnamn - + File to import Fil att importera - + File to export Fil att exportera - + Overwrite existing Skriv över befintlig - + Password Lösenord - + Password for the file Lösenord för filen - + Passwords don't match! Lösenorden stämmer inte! - + Passwords match! Lösenorden stämmer! - + Repeated Password for the file Upprepat lösenordet för filen - + Here you can Import Tokens from a file. Put in the file location and the password you used on export. Pull left to start the import. Här kan du importera Token från en fil. Ange filens sökväg och lösenordet du angav vid exporten. Svep åt vänster för att starta importen. - + Here you can export Tokens to a file. The exported file will be encrypted with AES-256-CBC and Base64 encoded. Choose a strong password, the file will contain the secrets used to generate the Tokens for your accounts. Pull left to start the export. Här kan du exportera Token till en fil. Den exporterade filen kommer att krypteras med AES-256-CBC och Base64. Välj ett starkt lösenord, filen kommer att innehålla hemligheterna som användes för att generera Token för ditt konto. Svep åt vänster för att starta exporten. - + To view the content of the export file outside of SailOTP use the following openssl command: För att visa innehållet i exportfilen utanför SailOTP, använder du följande openssl-kommando: - + Error writing to file Fel vid skrivning till fil - + Token Database exported to Token-databas exporterad till - + + Could not encrypt tokens. Error: Kunde inte kryptera token. Fel: - + Could not read tokens from Database Kunde inte läsa token från databasen - + Tokens imported from Token importerade från - + Unable to decrypt file, did you use the right password? Kunde inte dekryptera filen. Angav du rätt lösenord? - + Could not read from file Kunde inte läsa från fil diff --git a/translations/harbour-sailotp-zh_CN.ts b/translations/harbour-sailotp-zh_CN.ts index c987a83..e41ce1e 100644 --- a/translations/harbour-sailotp-zh_CN.ts +++ b/translations/harbour-sailotp-zh_CN.ts @@ -189,108 +189,109 @@ - + Export 导出 - + Import 导入 - + Filename 文件名 - + File to import - + File to export 要导出的文件 - + Overwrite existing 覆盖已存在 - + Password 密码 - + Password for the file 文件加密的密码 - + Passwords don't match! 密码不匹配 - + Passwords match! 密码匹配 - + Repeated Password for the file 替换文件的密码 - + Here you can Import Tokens from a file. Put in the file location and the password you used on export. Pull left to start the import. 在这里,你可以从文件导入令牌。输入你在导出时使用的文件位置和密码,向左拉开始导入 - + Here you can export Tokens to a file. The exported file will be encrypted with AES-256-CBC and Base64 encoded. Choose a strong password, the file will contain the secrets used to generate the Tokens for your accounts. Pull left to start the export. 在这里,您可以将令牌导出到文件。导出的文件将使用AES-256-CBC和Base64编码进行加密。选择一个强密码,该文件将包含用于为你的帐户生成令牌的密钥。向左拉开始导出 - + To view the content of the export file outside of SailOTP use the following openssl command: 在SailfOTP外面查看导出的文件,使用下面的openssl命令: - + Error writing to file 写入文件错误 - + Token Database exported to 令牌数据导出到 - + + Could not encrypt tokens. Error: 不能加密令牌,错误: - + Could not read tokens from Database 不能从数据库中读取令牌 - + Tokens imported from 令牌已从文件导入 - + Unable to decrypt file, did you use the right password? 不能加密文件,确定使用了正确的密码? - + Could not read from file 不能从文件读取 diff --git a/translations/harbour-sailotp.ts b/translations/harbour-sailotp.ts index 2e5869f..8b5ad8b 100644 --- a/translations/harbour-sailotp.ts +++ b/translations/harbour-sailotp.ts @@ -189,108 +189,109 @@ - + Export - + Import - + Filename - + File to import - + File to export - + Overwrite existing - + Password - + Password for the file - + Passwords don't match! - + Passwords match! - + Repeated Password for the file - + Here you can Import Tokens from a file. Put in the file location and the password you used on export. Pull left to start the import. - + Here you can export Tokens to a file. The exported file will be encrypted with AES-256-CBC and Base64 encoded. Choose a strong password, the file will contain the secrets used to generate the Tokens for your accounts. Pull left to start the export. - + To view the content of the export file outside of SailOTP use the following openssl command: - + Error writing to file - + Token Database exported to - + + Could not encrypt tokens. Error: - + Could not read tokens from Database - + Tokens imported from - + Unable to decrypt file, did you use the right password? - + Could not read from file