1
0
Fork 0
mirror of https://github.com/seiichiro0185/sailotp.git synced 2024-11-23 07:59:42 +00:00

Version 1.11.0-1

- Rework Export/Import File Encryption to use C++
- Switch to SHA256 for Export/Import Encryption instead of MD5
- Add FilePicker to select Import File
This commit is contained in:
seiichiro 2023-02-26 16:40:10 +01:00
parent 4bfb1f7200
commit e2b8ac70a7
25 changed files with 1119 additions and 315 deletions

View file

@ -4,6 +4,7 @@ DEFINES += APP_VERSION=\\\"$$VERSION\\\"
DEFINES += APP_BUILDNUM=\\\"$$RELEASE\\\"
CONFIG += sailfishapp
PKGCONFIG += libcrypto
SOURCES += src/harbour-sailotp.cpp
@ -48,4 +49,5 @@ TRANSLATIONS = translations/harbour-sailotp-de.ts \
include(src/qzxing/QZXing.pri)
include(src/FileIO/FileIO.pri)
include(src/QCipher/QCipher.pri)
include(src/qqrencode/qqrencode.pri)

View file

@ -274,7 +274,7 @@ Page {
horizontalAlignment: TextEdit.left
plainText: "\n"+qsTr("SailOTP uses the following third party libs:")+'
http://caligatio.github.io/jsSHA/
https://code.google.com/archive/p/crypto-js/
https://github.com/jlinoff/openssl-aes-cipher/
http://sourceforge.net/projects/qzxing/
http://fukuchi.org/works/qrencode/'
color: Theme.secondaryHighlightColor

View file

@ -28,11 +28,12 @@
*/
import QtQuick 2.0
import QtQuick 2.2
import Sailfish.Silica 1.0
import Sailfish.Pickers 1.0
import harbour.sailotp.FileIO 1.0 // Import FileIO Class
import harbour.sailotp.QCipher 1.0 // Import FileIO Class
import "../lib/storage.js" as DB // Import the storage library for Config-Access
import "../lib/cryptojs-aes.js" as CryptoJS //Import AES encryption library
// Define Layout of the Export / Import Page
Dialog {
@ -82,6 +83,11 @@ Dialog {
onError: { console.log(msg); }
}
// QCipher Object for Encryption
QCipher {
id: cipher
}
SilicaFlickable {
id: exportFlickable
anchors.fill: parent
@ -92,13 +98,26 @@ Dialog {
onClicked: {
if (mode == "export") {
mode = "import"
fileName.text = ""
} else {
mode = "export"
fileName.text = creFileName()
}
}
}
}
// FilePicker for the Input File
Component {
id: filePickerPage
FilePickerPage {
nameFilters: [ '*' ]
onSelectedContentPropertiesChanged: {
fileName.text = selectedContentProperties.filePath
}
}
}
VerticalScrollDecorator {}
Column {
@ -110,9 +129,10 @@ Dialog {
TextField {
id: fileName
width: parent.width
text: mode == "export" ? creFileName() : XDG_HOME_DIR + "/";
text: mode == "export" ? creFileName() : "";
label: qsTr("Filename")
placeholderText: mode == "import" ? qsTr("File to import") : qsTr("File to export")
placeholderText: qsTr("File to export")
visible: mode == "export"
focus: true
horizontalAlignment: TextInput.AlignLeft
@ -121,6 +141,14 @@ Dialog {
EnterKey.onClicked: filePassword.focus = true
}
ValueButton {
width: parent.width
label: qsTr("File to import")
value: fileName.text ? fileName.text : "None"
visible: mode == "import"
onClicked: pageStack.push(filePickerPage)
}
TextSwitch {
id: fileOverwrite
checked: false
@ -186,7 +214,7 @@ Dialog {
color: Theme.secondaryColor
visible: mode == "export"
text: qsTr("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.")+"\n\n"+qsTr("To view the content of the export file outside of SailOTP use the following openssl command:") + "\n\nopenssl enc -d -a -A -md md5 -aes-256-cbc -in <file>"
text: qsTr("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.")+"\n\n"+qsTr("To view the content of the export file outside of SailOTP use the following openssl command:") + "\n\nopenssl enc -d -a -aes-256-cbc -in <file>"
}
}
}
@ -206,15 +234,19 @@ Dialog {
if (plainText != "") {
try {
chipherText = CryptoJS.CryptoJS.AES.encrypt(plainText, filePassword.text);
chipherText = cipher.encrypt(plainText, filePassword.text);
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);
}
} catch(e) {
} else {
notify.show(qsTr("Could not encrypt tokens. Error: "), 4000);
}
} catch(e) {
notify.show(qsTr("Could not encrypt tokens. Error: ") + e, 4000);
}
} else {
notify.show(qsTr("Could not read tokens from Database"), 4000);
}
@ -225,7 +257,7 @@ Dialog {
if (chipherText != "") {
try {
var errormsg = ""
plainText = CryptoJS.CryptoJS.AES.decrypt(chipherText, filePassword.text).toString(CryptoJS.CryptoJS.enc.Utf8);
plainText = cipher.decrypt(chipherText, filePassword.text)
if (DB.json2db(plainText, errormsg)) {
notify.show(qsTr("Tokens imported from ")+ fileName.text, 4000);
} else {

View file

@ -1,3 +1,8 @@
* Mon Feb 20 2023 Stefan Brand <sailfish@seiichiro0185.org> 1.11.0-1
- Rework Export/Import File Encryption to use C++
- Switch to SHA256 for Export/Import Encryption instead of MD5
- Add FilePicker to select Import-File
* Wed Jan 25 2023 Stefan Brand <sailfish@seiichiro0185.org> 1.10.2-1
- Add Sailjail Permission for Camera Use (contributed by Keeper-of-the-Keys)

View file

@ -1,6 +1,6 @@
Name: harbour-sailotp
Summary: SailOTP
Version: 1.10.2
Version: 1.11.0
Release: 1
Group: Security
URL: https://github.com/seiichiro0185/sailotp/
@ -26,6 +26,7 @@ PkgConfigBR:
- Qt5Core
- Qt5Multimedia
- sailfishapp >= 1.0.2
- libcrypto
Requires:
- sailfishsilica-qt5 >= 0.10.9

View file

@ -52,7 +52,7 @@ QString FileIO::read()
QTextStream t( &file );
do {
line = t.readLine();
fileContent += line;
fileContent += line + "\n";
} while (!line.isNull());
file.close();

9
src/QCipher/QCipher.pri Normal file
View file

@ -0,0 +1,9 @@
QT += core quick
INCLUDEPATH += $$PWD/src
HEADERS += $$PWD/src/cipher.h \
$$PWD/src/qcipher.h
SOURCES += $$PWD/src/cipher.cpp \
$$PWD/src/qcipher.cpp

3
src/QCipher/README.md Normal file
View file

@ -0,0 +1,3 @@
# QChipher - a minimal OpenSSL Encryption / Decryption Wrapper
Based on https://github.com/jlinoff/openssl-aes-cipher by Joe Linoff

476
src/QCipher/src/cipher.cpp Normal file
View file

@ -0,0 +1,476 @@
// ================================================================
// Description: Cipher class.
// Copyright: Copyright (c) 2012 by Joe Linoff
// Version: 1.3.0
// Author: Joe Linoff
//
// LICENSE
// The cipher package is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation; either version 2 of the
// License, or (at your option) any later version.
//
// The cipher package is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details. You should have received
// a copy of the GNU General Public License along with the change
// tool; if not, write to the Free Software Foundation, Inc., 59
// Temple Place, Suite 330, Boston, MA 02111-1307 USA.
// ================================================================
#include "cipher.h"
#include <fstream>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <stdexcept>
#include <sstream>
#include <cstring> // strlen
#include <cstdlib> // getenv
#include <unistd.h> // getdomainname
#include <openssl/aes.h>
#include <openssl/bio.h>
#include <openssl/evp.h>
#include <openssl/buffer.h>
#include <openssl/err.h>
using namespace std;
// ================================================================
// MACROS
// ================================================================
#define DBG_PRE __FILE__ << ":" << __LINE__ << ": "
#define DBG_FCT(fct) if(m_debug) cout << DBG_PRE << "FCT " << fct << endl
#define DBG_TDUMP(v) if(m_debug) tdump(__FILE__, __LINE__, #v, v)
#define DBG_PKV(v) if(m_debug) vdump(__FILE__, __LINE__, #v, v)
#define DBG_PKVR(k, v) if(m_debug) vdump(__FILE__, __LINE__, k, v)
#define DBG_BDUMP(a, x) if(m_debug) bdump(__FILE__, __LINE__, #a, a, x)
#define DBG_MDUMP(a) if(m_debug) bdump(__FILE__, __LINE__, #a, (unsigned char*)a.c_str(), a.size())
#define DBG_MADEIT cout << DBG_PRE << "MADE IT" << endl
#define PKV(v) vdump(__FILE__, __LINE__, #v, v)
#define SALTED_PREFIX "Salted__"
namespace
{
// ================================================================
// DEBUG mode only.
// Formated dump of a general type.
// ================================================================
template<typename T> void vdump(const string& fn,
uint ln,
const string& prefix,
const T& d)
{
cout << fn << ":" << ln << ": " << prefix << "\t" << d << endl;
}
// ================================================================
// DEBUG mode only.
// Explicit template instantiation of the above for string
// types so that I can report the length.
// ================================================================
template<> void vdump<string>(const string& fn,
uint ln,
const string& prefix,
const string& d)
{
cout << fn << ":" << ln << ": "
<< prefix << "\t"
<< left << setw(64) << d
<< " (" << d.size() << ")"
<< endl;
}
// ================================================================
// DEBUG mode only.
// Dump for fixed sized types like m_salt and m_key.
// ================================================================
template<typename T> void tdump(const string& fn,
uint ln,
const string& prefix,
const T& d)
{
cout << fn << ":" << ln << ": " << prefix << "\t";
for(uint i=0;i<sizeof(T);++i) {
#if 0
// Prettified output.
// I turned it off so that the format would match openssl.
if ((i%16)==0) {
if (i) {
cout << endl;
cout << "\t\t\t";
}
else {
if (prefix.size()<4) {
cout << "\t";
}
cout << "\t";
}
}
else if (i) {
cout << ", ";
}
#endif
cout << setw(2) << setfill('0') << hex << right << uint(d[i]) << dec << setfill(' ');
}
cout << " (" << sizeof(T) << ")" << endl;
}
// ================================================================
// DEBUG mode only.
// Binary data dump.
// ================================================================
void bdump(const string& fn,
uint ln,
const string& prefix,
unsigned char* a,
unsigned int len)
{
cout << fn << ":" << ln << ": " << prefix;
for(uint i=0;i<len;++i) {
if ((i%16)==0) {
if (i) {
cout << endl;
cout << "\t\t\t";
}
else {
cout << "\t\t";
}
}
else if (i) {
cout << ", ";
}
cout << setw(2) << hex << right << uint(a[i]) << dec;
}
cout << " (" << len << ")" << endl;
}
}
// ================================================================
// Constructor.
// ================================================================
Cipher::Cipher()
: m_cipher(CIPHER_DEFAULT_CIPHER),
m_digest(CIPHER_DEFAULT_DIGEST),
m_count(CIPHER_DEFAULT_COUNT),
m_embed(true), // compatible with openssl
m_debug(false)
{
}
// ================================================================
// Constructor.
// ================================================================
Cipher::Cipher(const std::string& cipher,
const std::string& digest,
uint count,
bool embed)
: m_cipher(cipher),
m_digest(digest),
m_count(count),
m_embed(embed),
m_debug(false)
{
}
// ================================================================
// Destructor.
// ================================================================
Cipher::~Cipher()
{
}
// ================================================================
// encrypt
// ================================================================
string Cipher::encrypt(const string& plaintext,
const string& pass,
const string& salt)
{
DBG_FCT("encrypt");
set_salt(salt);
init(pass);
kv1_t x = encode_cipher(plaintext);
uchar* ct = x.first;
uint ctlen = x.second;
DBG_BDUMP(ct, ctlen);
string ret = encode_base64(ct, ctlen);
delete [] ct;
DBG_MDUMP(ret);
return ret;
}
// ================================================================
// decrypt
// ================================================================
string Cipher::decrypt(const string& mimetext,
const string& pass,
const string& salt)
{
DBG_FCT("decrypt");
DBG_PKV(mimetext);
kv1_t x = decode_base64(mimetext);
uchar* ct = x.first;
uint ctlen = x.second;
DBG_PKV(ctlen);
DBG_BDUMP(ct, ctlen);
if (strncmp((const char*)ct, SALTED_PREFIX, 8) == 0) {
memcpy(m_salt, &ct[8], 8);
ct += 16;
ctlen -= 16;
}
else {
set_salt(salt);
}
init(pass);
string ret = decode_cipher(ct, ctlen);
DBG_MDUMP(ret);
return ret;
}
// ================================================================
// encode_base64
// ================================================================
string Cipher::encode_base64(uchar* ciphertext,
uint ciphertext_len) const
{
DBG_FCT("encode_base64");
BIO* b64 = BIO_new(BIO_f_base64());
BIO* bm = BIO_new(BIO_s_mem());
b64 = BIO_push(b64, bm);
if (BIO_write(b64, ciphertext, ciphertext_len)<2) {
throw runtime_error("BIO_write() failed");
}
if (BIO_flush(b64)<1) {
throw runtime_error("BIO_flush() failed");
}
BUF_MEM *bptr=0;
BIO_get_mem_ptr(b64, &bptr);
uint len=bptr->length;
char* mimetext = new char[len+1];
memcpy(mimetext, bptr->data, bptr->length-1);
mimetext[bptr->length-1]=0;
BIO_free_all(b64);
string ret = mimetext;
delete [] mimetext;
return ret;
}
// ================================================================
// decode_base64
// ================================================================
Cipher::kv1_t Cipher::decode_base64(const string& mimetext) const
{
DBG_FCT("decode_base64");
kv1_t x;
int SZ=mimetext.size(); // this will always be smaller
x.first = new uchar[SZ];
char* tmpbuf = new char[SZ+1];
strcpy(tmpbuf, mimetext.c_str());
BIO* b64 = BIO_new(BIO_f_base64());
BIO* bm = BIO_new_mem_buf(tmpbuf, mimetext.size());
bm = BIO_push(b64, bm);
if (SZ <= 64) {
BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL);
}
x.second = BIO_read(bm, x.first, SZ);
BIO_free_all(bm);
delete [] tmpbuf;
return x;
}
// ================================================================
// encode_cipher
// ================================================================
Cipher::kv1_t Cipher::encode_cipher(const string& plaintext) const
{
DBG_FCT("encode_cipher");
uint SZ = plaintext.size() + AES_BLOCK_SIZE + 20; // leave some padding
uchar* ciphertext = new uchar[SZ];
bzero(ciphertext, SZ);
uchar* pbeg = ciphertext;
// This requires some explanation.
// In order to be compatible with openssl, I need to append
// 16 characters worth of information that describe the salt.
// I found this in the openssl source code but I couldn't
// find any associated documentation.
uint off = 0;
if (m_embed) {
memcpy(&ciphertext[0], SALTED_PREFIX, 8);
memcpy(&ciphertext[8], m_salt, 8);
off = 16;
ciphertext += off;
}
int ciphertext_len=0;
EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new();
const EVP_CIPHER* cipher = EVP_aes_256_cbc();
EVP_CIPHER_CTX_init(ctx);
if (1 != EVP_EncryptInit_ex(ctx, cipher, NULL, m_key, m_iv)) {
EVP_CIPHER_CTX_free(ctx);
throw runtime_error("EVP_EncryptInit_ex DBG_PKV() init key/iv failed");
}
EVP_CIPHER_CTX_set_key_length(ctx, EVP_MAX_KEY_LENGTH);
// Encrypt the plaintext data all at once.
// It would be straightforward to chunk it but that
// add unecesary complexity at this point.
uchar* pt_buf = (uchar*)plaintext.c_str();
uint pt_len = plaintext.size();
if (1 != EVP_EncryptUpdate(ctx, ciphertext, &ciphertext_len, pt_buf, pt_len)) {
EVP_CIPHER_CTX_free(ctx);
throw runtime_error("EVP_EncryptUpdate() failed");
}
uchar* pad_buf = ciphertext + ciphertext_len; // pad at the end
int pad_len=0;
if (1 != EVP_EncryptFinal_ex(ctx, pad_buf, &pad_len)) {
EVP_CIPHER_CTX_free(ctx);
throw runtime_error("EVP_EncryptFinal_ex() failed");
}
ciphertext_len += pad_len + off; // <off> for the Salted prefix
EVP_CIPHER_CTX_free(ctx);
return kv1_t(pbeg, ciphertext_len);
}
// ================================================================
// decode_cipher
// ================================================================
string Cipher::decode_cipher(uchar* ciphertext,
uint ciphertext_len) const
{
DBG_FCT("decode_cipher");
const uint SZ = ciphertext_len+20;
uchar* plaintext = new uchar[SZ];
int plaintext_len = 0;
EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new();
bzero(plaintext, SZ);
EVP_CIPHER_CTX_init(ctx);
if (1 != EVP_DecryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, m_key, m_iv)) {
EVP_CIPHER_CTX_free(ctx);
throw runtime_error("EVP_DecryptInit_ex() failed");
}
//EVP_CIPHER_CTX_set_key_length(ctx, EVP_MAX_KEY_LENGTH);
if (1 != EVP_DecryptUpdate(ctx, plaintext, &plaintext_len, ciphertext, ciphertext_len)) {
EVP_CIPHER_CTX_free(ctx);
throw runtime_error("EVP_DecryptUpdate() failed");
}
int plaintext_padlen=0;
if (1 != EVP_DecryptFinal_ex(ctx, plaintext+plaintext_len, &plaintext_padlen)) {
ERR_print_errors_fp(stderr);
EVP_CIPHER_CTX_free(ctx);
throw runtime_error("EVP_DecryptFinal_ex() failed");
}
plaintext_len += plaintext_padlen;
plaintext[plaintext_len] = 0;
string ret = (char*)plaintext;
delete [] plaintext;
EVP_CIPHER_CTX_free(ctx);
return ret;
}
// ================================================================
// set_salt
// ================================================================
void Cipher::set_salt(const string& salt)
{
DBG_FCT("set_salt");
if (salt.length() == 0) {
// Choose a random salt.
for(uint i=0;i<sizeof(m_salt);++i) {
m_salt[i] = rand() % 256;
}
}
else if (salt.length() == 8) {
memcpy(m_salt, salt.c_str(), 8);
}
else if (salt.length()<8) {
throw underflow_error("init(): salt is too short, must be 8 characters");
}
else if (salt.length()>8) {
throw overflow_error("init(): salt is too long, must be 8 characters");
}
}
// ================================================================
// init()
// ================================================================
void Cipher::init(const string& pass)
{
DBG_FCT("init");
// Use a default passphrase if the user didn't specify one.
m_pass = pass;
if (m_pass.empty() ) {
// Default: ' deFau1t pASsw0rD'
// Obfuscate so that a simple strings will not find it.
char a[] = {' ', 'd', 'e', 'F', 'a', 'u', '1', 't', ' ',
'p', 'A', 'S', 's', 'w', '0', 'r', 'D', 0};
m_pass = a;
}
// Create the key and IV values from the passkey.
bzero(m_key, sizeof(m_key));
bzero(m_iv, sizeof(m_iv));
OpenSSL_add_all_algorithms();
const EVP_CIPHER* cipher = EVP_get_cipherbyname(m_cipher.c_str());
const EVP_MD* digest = EVP_get_digestbyname(m_digest.c_str());
if (!cipher) {
string msg = "init(): cipher does not exist "+m_cipher;
throw runtime_error(msg);
}
if (!digest) {
string msg = "init(): digest does not exist "+m_digest;
throw runtime_error(msg);
}
int ks = EVP_BytesToKey(cipher, // cipher type
digest, // message digest
m_salt, // 8 bytes
(uchar*)m_pass.c_str(), // pass value
m_pass.length(),
m_count, // number of rounds
m_key,
m_iv);
if (ks!=32) {
throw runtime_error("init() failed: "
"EVP_BytesToKey did not return a 32 byte key");
}
DBG_PKV(m_pass);
DBG_PKV(m_cipher);
DBG_PKV(m_digest);
DBG_TDUMP(m_salt);
DBG_TDUMP(m_key);
DBG_TDUMP(m_iv);
DBG_PKV(m_count);
}
// ================================================================
// get_version
// ================================================================
std::string Cipher::get_version() {
return "1.3.0";
}
// ================================================================
// get_ssl_version
// ================================================================
#define TO_STRING_(x) #x
#define TO_STRING(x) TO_STRING_(x)
std::string Cipher::get_ssl_version() {
return TO_STRING(OPENSSL_VERSION_NUMBER);
}

208
src/QCipher/src/cipher.h Normal file
View file

@ -0,0 +1,208 @@
// ================================================================
// Description: Cipher class.
// Copyright: Copyright (c) 2012 by Joe Linoff
// Version: 1.3.0
// Author: Joe Linoff
//
// LICENSE
// The cipher package is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation; either version 2 of the
// License, or (at your option) any later version.
//
// The cipher package is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details. You should have received
// a copy of the GNU General Public License along with the change
// tool; if not, write to the Free Software Foundation, Inc., 59
// Temple Place, Suite 330, Boston, MA 02111-1307 USA.
// ================================================================
#ifndef cipher_h
#define cipher_h
#include <string>
#include <vector>
#include <utility> // pair
#define CIPHER_DEFAULT_CIPHER "aes-256-cbc"
#define CIPHER_DEFAULT_DIGEST "sha256"
#define CIPHER_DEFAULT_COUNT 1
/**
* The cipher object encrypts plaintext data or decrypts ciphertext
* data. All data is in ASCII because it is MIME encoded.
*
* The default cipher used is AES-256-CBC from the openssl library
* but there are many others available. The default digest used is
* SHA256 which is stronger than MD5.
*
* The algorithms mimic openssl so files created with this object
* and with the openssl tool are interchangeable.
*
* Here is how you would use it to encrypt and decrypt plaintext
* data in memory.
* @code
* #include "cipher.h"
* #include <string>
* using namepsace std;
*
* // Example the encrypts and decrypts some plaintext.
* // Use encrypt_file or decrypt_file to deal with files.
* void cipher_test()
* {
* string pass = "testTEST!23_";
* string salt = "12345678"; // must be 8 chars
* string plaintext = "Lorem ipsum dolor sit amet, consectetur adipiscing elit.";
*
* // Encrypt and decrypt.
* Cipher c;
* string ciphertext = c.encrypt(plaintext ,pass,salt);
* string decoded = c.decrypt(ciphertext,pass,salt);
*
* // Test the results
* if (plaintext == decoded) {
* cout << "passed" << endl;
* }
* else {
* cout << "failed" << endl;
* }
* }
* @endcode
* @author Joe Linoff
*/
class Cipher
{
public:
typedef unsigned int uint;
typedef unsigned char uchar;
typedef uchar aes_key_t[32];
typedef uchar aes_iv_t[32];
typedef uchar aes_salt_t[8];
typedef std::pair<uchar*,uint> kv1_t;
public:
/**
* Constructor.
*/
Cipher();
/**
* Constructor.
* @param cipher The cipher algorithm to use (ex. aes-256-cbc).
* @param digest The digest to use (ex. sha256).
* @param count The number of iterations (def. 1).
* @param embed Embed the salt. If this is false, the output will
* not be compatible with openssl.
*/
Cipher(const std::string& cipher,
const std::string& digest,
uint count=1,
bool embed=true);
/**
* Destructor.
*/
~Cipher();
public:
/**
* Encrypt buffer using AES 256 CBC (SHA256).
* @param plaintext The plaintext buffer.
* @param pass The passphrase.
* @param salt The optional salt.
* @returns The ciphertext: encrypted, MIME encoded data.
*/
std::string encrypt(const std::string& plaintext,
const std::string& pass="",
const std::string& salt="");
public:
/**
* Decrypt a buffer using AES 256 CBC (SHA256).
* @param ciphertext The encrypted data.
* @param pass The passphrase.
* @param salt The optional salt.
* @returns The plaintext: decrypted, MIME decoded data.
*/
std::string decrypt(const std::string& ciphertext,
const std::string& pass="",
const std::string& salt="");
public:
/**
* Base64 encode.
* @param ciphertext Binary cipher text.
* @param ciphertext_len Length of cipher buffer.
* @returns The encoded ASCII MIME string.
*/
std::string encode_base64(uchar* ciphertext,
uint ciphertext_len) const;
/**
* Cipher encode.
* @param plaintext ASCII data to encode.
* @returns Binary data.
*/
kv1_t encode_cipher(const std::string& plaintext) const;
/**
* Base64 decode.
* @param mimetext ASCII MIME text.
* @returns Binary data.
*/
kv1_t decode_base64(const std::string& mimetext) const;
/**
* Cipher decode.
* @param ciphertext Binary cipher text.
* @param ciphertext_len Length of cipher buffer.
* @returns The decoded ASCII string.
*/
std::string decode_cipher(uchar* ciphertext,
uint ciphertext_len) const;
public:
/**
* Get the version of this class.
* @returns The version of the class.
*/
static std::string get_version();
/**
* Get the version of ssl.
*/
static std::string get_ssl_version();
public:
/**
* Set the internal debug flag.
* This is only useful for library developers.
* @param b True for debug or false otherwise.
*/
void debug(bool b=true) {m_debug=b;}
/**
* Is debug mode set?
* @returns The current debug mode.
*/
bool debug() const {return m_debug;}
private:
/**
* Convert string salt to internal format.
* @param salt The salt.
*/
void set_salt(const std::string& salt);
/**
* Initialize the cipher: set the key and IV values.
* @param pass The passphrase.
*/
void init(const std::string& pass);
private:
std::string m_pass;
std::string m_cipher;
std::string m_digest;
aes_salt_t m_salt;
aes_key_t m_key;
aes_iv_t m_iv;
uint m_count;
bool m_embed;
bool m_debug;
};
#endif

View file

@ -0,0 +1,29 @@
#include "qcipher.h"
QCipher::QCipher(QObject *parent) : QObject(parent)
{
c = Cipher("aes-256-cbc", "sha256");
}
QString QCipher::encrypt(QString plaintext, QString pass)
{
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)
{
try {
std::string dec;
dec = c.decrypt(ciphertext.toStdString(), pass.toStdString());
return QString::fromUtf8(dec.c_str());
} catch (...) {
return "";
}
};

24
src/QCipher/src/qcipher.h Normal file
View file

@ -0,0 +1,24 @@
#ifndef QCIPHER_H
#define QCIPHER_H
#include <QObject>
#include <QString>
#include "cipher.h"
class QCipher : public QObject
{
Q_OBJECT
public:
explicit QCipher(QObject *parent = nullptr);
Q_INVOKABLE QString encrypt(QString plaintext, QString pass);
Q_INVOKABLE QString decrypt(QString ciphertext, QString pass);
private:
Cipher c;
signals:
};
#endif // QCIPHER_H

View file

@ -31,6 +31,7 @@
#include <sailfishapp.h>
#include <QGuiApplication>
#include "fileio.h"
#include "qcipher.h"
#include "qzxing.h"
#include "qqrencode.h"
@ -58,6 +59,8 @@ int main(int argc, char *argv[])
// Register FileIO Class
qmlRegisterType<FileIO, 1>("harbour.sailotp.FileIO", 1, 0, "FileIO");
// Register QCipher Class
qmlRegisterType<QCipher, 1>("harbour.sailotp.QCipher", 1, 0, "QCipher");
// Prepare the QML and set Homedir
view->setSource(SailfishApp::pathTo("qml/harbour-sailotp.qml"));

View file

@ -178,119 +178,120 @@
<context>
<name>ExportPage</name>
<message>
<location filename="../qml/pages/ExportPage.qml" line="63"/>
<location filename="../qml/pages/ExportPage.qml" line="64"/>
<source>File already exists, choose &quot;Overwrite existing&quot; to overwrite it.</source>
<translation>Datei existiert, aktiviere &quot;Existierende überschreiben&quot; um sie zu ersetzen.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="72"/>
<location filename="../qml/pages/ExportPage.qml" line="73"/>
<source>Given file does not exist!</source>
<translation>Gewählte Datei existiert nicht!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Export</source>
<translation>Export</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Import</source>
<translation>Import</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="114"/>
<location filename="../qml/pages/ExportPage.qml" line="133"/>
<source>Filename</source>
<translation>Dateiname</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="146"/>
<source>File to import</source>
<translation>Aus Datei importieren</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<source>File to export</source>
<translation>In Datei exportieren</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="128"/>
<location filename="../qml/pages/ExportPage.qml" line="156"/>
<source>Overwrite existing</source>
<translation>Existierende überschreiben</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<location filename="../qml/pages/ExportPage.qml" line="162"/>
<source>Password</source>
<translation>Passwort</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="135"/>
<location filename="../qml/pages/ExportPage.qml" line="163"/>
<source>Password for the file</source>
<translation>Passwort für die Datei</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords don&apos;t match!</source>
<translation>Passwörter nicht identisch!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords match!</source>
<translation>Passwörter identisch!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="149"/>
<location filename="../qml/pages/ExportPage.qml" line="177"/>
<source>Repeated Password for the file</source>
<translation>Passwort wiederholen</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="173"/>
<location filename="../qml/pages/ExportPage.qml" line="201"/>
<source>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.</source>
<translation>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.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>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.</source>
<translation>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.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>To view the content of the export file outside of SailOTP use the following openssl command:</source>
<translation>Mit folgendem Openssl-Befehl kann der Inhalt der Exportdatei außerhalb von SailOTP angezeigt werden:</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="211"/>
<location filename="../qml/pages/ExportPage.qml" line="240"/>
<source>Error writing to file </source>
<translation>Fehler beim Schreiben der Datei</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="213"/>
<location filename="../qml/pages/ExportPage.qml" line="242"/>
<source>Token Database exported to </source>
<translation>Datenbank exportiert nach </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="216"/>
<location filename="../qml/pages/ExportPage.qml" line="245"/>
<location filename="../qml/pages/ExportPage.qml" line="248"/>
<source>Could not encrypt tokens. Error: </source>
<translation>Fehler beim Verschlüsseln. Fehler: </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="219"/>
<location filename="../qml/pages/ExportPage.qml" line="251"/>
<source>Could not read tokens from Database</source>
<translation>Datenbank konnte nicht gelesen werden</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="230"/>
<location filename="../qml/pages/ExportPage.qml" line="262"/>
<source>Tokens imported from </source>
<translation>Tokens importiert aus </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="235"/>
<location filename="../qml/pages/ExportPage.qml" line="267"/>
<source>Unable to decrypt file, did you use the right password?</source>
<translation>Fehler beim entschlüsseln, falsches Passwort?</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="238"/>
<location filename="../qml/pages/ExportPage.qml" line="270"/>
<source>Could not read from file </source>
<translation>Datei konnte nicht gelesen werden</translation>
</message>

View file

@ -178,119 +178,120 @@
<context>
<name>ExportPage</name>
<message>
<location filename="../qml/pages/ExportPage.qml" line="63"/>
<location filename="../qml/pages/ExportPage.qml" line="64"/>
<source>File already exists, choose &quot;Overwrite existing&quot; to overwrite it.</source>
<translation>El fichero ya existe, escoja la opción &quot;Sobreescribir existente&quot; para sobreescribirlo.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="72"/>
<location filename="../qml/pages/ExportPage.qml" line="73"/>
<source>Given file does not exist!</source>
<translation>¡El fichero proporcionado no exsiste!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Export</source>
<translation>Exportar</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Import</source>
<translation>Importar</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="114"/>
<location filename="../qml/pages/ExportPage.qml" line="133"/>
<source>Filename</source>
<translation>Nombre del fichero</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="146"/>
<source>File to import</source>
<translation>Fichero a importar</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<source>File to export</source>
<translation>Fichero a exportar</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="128"/>
<location filename="../qml/pages/ExportPage.qml" line="156"/>
<source>Overwrite existing</source>
<translation>Sobreescribir existente</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<location filename="../qml/pages/ExportPage.qml" line="162"/>
<source>Password</source>
<translation>Contraseña</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="135"/>
<location filename="../qml/pages/ExportPage.qml" line="163"/>
<source>Password for the file</source>
<translation>Contraseña para el fichero</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords don&apos;t match!</source>
<translation>¡Las contraseñas no coinciden!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords match!</source>
<translation>¡Las contraseñas coinciden!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="149"/>
<location filename="../qml/pages/ExportPage.qml" line="177"/>
<source>Repeated Password for the file</source>
<translation>Contraseña repetida para el archivo</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="173"/>
<location filename="../qml/pages/ExportPage.qml" line="201"/>
<source>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.</source>
<translation>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.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>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.</source>
<translation>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.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>To view the content of the export file outside of SailOTP use the following openssl command:</source>
<translation>Para ver los contenidos del fichero de exportación fuera de SailOTP utilize el siguiente comando openssl:</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="211"/>
<location filename="../qml/pages/ExportPage.qml" line="240"/>
<source>Error writing to file </source>
<translation>Error escribiendo el fichero</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="213"/>
<location filename="../qml/pages/ExportPage.qml" line="242"/>
<source>Token Database exported to </source>
<translation>Base de datos de Tokens exportada en</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="216"/>
<location filename="../qml/pages/ExportPage.qml" line="245"/>
<location filename="../qml/pages/ExportPage.qml" line="248"/>
<source>Could not encrypt tokens. Error: </source>
<translation>No se ha podido encriptar los tokens. Error: </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="219"/>
<location filename="../qml/pages/ExportPage.qml" line="251"/>
<source>Could not read tokens from Database</source>
<translation>No se ha podido leer los tokens desde la Base de datos</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="230"/>
<location filename="../qml/pages/ExportPage.qml" line="262"/>
<source>Tokens imported from </source>
<translation>Tokens importados desde</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="235"/>
<location filename="../qml/pages/ExportPage.qml" line="267"/>
<source>Unable to decrypt file, did you use the right password?</source>
<translation>No se ha podido desencriptar el fichero, ¿ha utilizado el password correcto?</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="238"/>
<location filename="../qml/pages/ExportPage.qml" line="270"/>
<source>Could not read from file </source>
<translation>No se ha podido leer desde el fichero</translation>
</message>

View file

@ -178,119 +178,120 @@
<context>
<name>ExportPage</name>
<message>
<location filename="../qml/pages/ExportPage.qml" line="63"/>
<location filename="../qml/pages/ExportPage.qml" line="64"/>
<source>File already exists, choose &quot;Overwrite existing&quot; to overwrite it.</source>
<translation>Tiedosto on jo olemassa. Voit korvata vanhan tiedoston valitsemalla Ylikirjoita tiedosto.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="72"/>
<location filename="../qml/pages/ExportPage.qml" line="73"/>
<source>Given file does not exist!</source>
<translation>Tiedostoa ei ole olemassa!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Export</source>
<translation>Vie</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Import</source>
<translation>Tuo</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="114"/>
<location filename="../qml/pages/ExportPage.qml" line="133"/>
<source>Filename</source>
<translation>Tiedoston nimi</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="146"/>
<source>File to import</source>
<translation>Tuotava tiedosto</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<source>File to export</source>
<translation>Vietävä tiedosto</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="128"/>
<location filename="../qml/pages/ExportPage.qml" line="156"/>
<source>Overwrite existing</source>
<translation>Ylikirjoita tiedosto</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<location filename="../qml/pages/ExportPage.qml" line="162"/>
<source>Password</source>
<translation>Salasana</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="135"/>
<location filename="../qml/pages/ExportPage.qml" line="163"/>
<source>Password for the file</source>
<translation>Tiedoston salasana</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords don&apos;t match!</source>
<translation>Salasanat eivät täsmää!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords match!</source>
<translation>Salasanat täsmäävät!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="149"/>
<location filename="../qml/pages/ExportPage.qml" line="177"/>
<source>Repeated Password for the file</source>
<translation>Tiedoston salasanan vahvistus</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="173"/>
<location filename="../qml/pages/ExportPage.qml" line="201"/>
<source>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.</source>
<translation>Voit tuoda tunnuksia tiedostosta. Anna tiedoston polku sekä salasana, jonka annoit vientiä tehdessäsi. Pyyhkäise vasemmalle aloittaaksesi tuonnin.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>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.</source>
<translation>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.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>To view the content of the export file outside of SailOTP use the following openssl command:</source>
<translation>Jos haluat tarkastella vientitiedoston sisältöä SailOTP:n ulkopuolella, käytä seuraavaa OpenSSL-komentoa:</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="211"/>
<location filename="../qml/pages/ExportPage.qml" line="240"/>
<source>Error writing to file </source>
<translation>Virhe kirjoitettaessa tiedostoa</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="213"/>
<location filename="../qml/pages/ExportPage.qml" line="242"/>
<source>Token Database exported to </source>
<translation>Tunnustietokanta viety tiedostoon </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="216"/>
<location filename="../qml/pages/ExportPage.qml" line="245"/>
<location filename="../qml/pages/ExportPage.qml" line="248"/>
<source>Could not encrypt tokens. Error: </source>
<translation>Tunnusten salaaminen epäonnistui. Virhe: </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="219"/>
<location filename="../qml/pages/ExportPage.qml" line="251"/>
<source>Could not read tokens from Database</source>
<translation>Tunnusten lukeminen tietokannasta epäonnistui</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="230"/>
<location filename="../qml/pages/ExportPage.qml" line="262"/>
<source>Tokens imported from </source>
<translation>Tunnukset tuotu tiedostosta </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="235"/>
<location filename="../qml/pages/ExportPage.qml" line="267"/>
<source>Unable to decrypt file, did you use the right password?</source>
<translation>Tiedoston salauksen purkaminen epäonnistui. Tarkista salasana.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="238"/>
<location filename="../qml/pages/ExportPage.qml" line="270"/>
<source>Could not read from file </source>
<translation>Tiedoston lukeminen epäonnistui </translation>
</message>

View file

@ -178,120 +178,121 @@
<context>
<name>ExportPage</name>
<message>
<location filename="../qml/pages/ExportPage.qml" line="63"/>
<location filename="../qml/pages/ExportPage.qml" line="64"/>
<source>File already exists, choose &quot;Overwrite existing&quot; to overwrite it.</source>
<translation>Le fichier existe déjà, cochez &quot;Écraser un fichier existant&quot; pour le remplacer.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="72"/>
<location filename="../qml/pages/ExportPage.qml" line="73"/>
<source>Given file does not exist!</source>
<translation>Le fichier spécifé n&apos;existe pas !</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Import</source>
<translation>Importer</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Export</source>
<translation>Exporter</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="114"/>
<location filename="../qml/pages/ExportPage.qml" line="133"/>
<source>Filename</source>
<translation>Nom du fichier</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="146"/>
<source>File to import</source>
<translation>Fichier à importer</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<source>File to export</source>
<translation>Fichier à exporter</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="128"/>
<location filename="../qml/pages/ExportPage.qml" line="156"/>
<source>Overwrite existing</source>
<translation>Écraser un fichier existant</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<location filename="../qml/pages/ExportPage.qml" line="162"/>
<source>Password</source>
<translation>Mot de passe</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="135"/>
<location filename="../qml/pages/ExportPage.qml" line="163"/>
<source>Password for the file</source>
<translation>Mot de passe pour le fichier</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords don&apos;t match!</source>
<translation>Les mots de passe ne correspondent pas !</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords match!</source>
<translation>Les mots de passe correspondent !</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="149"/>
<location filename="../qml/pages/ExportPage.qml" line="177"/>
<source>Repeated Password for the file</source>
<translation>Confirmation du mot de passe pour le fichier</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="173"/>
<location filename="../qml/pages/ExportPage.qml" line="201"/>
<source>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.</source>
<translation>Vous pouvez ici importer les paramètres d&apos;OTP depuis un fichier. Indiquez le fichier et le mot de passe utilisés lors de l&apos;export. Glissez vers la droite pour démarrer l&apos;import.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>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.</source>
<translation>Vous pouvez ici exporter les paramètres d&apos;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&apos;export.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>To view the content of the export file outside of SailOTP use the following openssl command:</source>
<translatorcomment>Translated using Google Translate</translatorcomment>
<translation>Pour afficher le contenu du fichier d&apos;exportation en dehors de SailOTP, utilisez la commande openssl suivante:</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="211"/>
<location filename="../qml/pages/ExportPage.qml" line="240"/>
<source>Error writing to file </source>
<translation>Erreur lors de l&apos;écriture du fichier</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="213"/>
<location filename="../qml/pages/ExportPage.qml" line="242"/>
<source>Token Database exported to </source>
<translation>Base des paramètres d&apos;OTP exportée vers</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="216"/>
<location filename="../qml/pages/ExportPage.qml" line="245"/>
<location filename="../qml/pages/ExportPage.qml" line="248"/>
<source>Could not encrypt tokens. Error: </source>
<translation>Impossible de chiffrer les paramètes d&apos;OTP. Erreur :</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="219"/>
<location filename="../qml/pages/ExportPage.qml" line="251"/>
<source>Could not read tokens from Database</source>
<translation>Impossible de lire les paramètres d&apos;OTP depuis la base de données</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="230"/>
<location filename="../qml/pages/ExportPage.qml" line="262"/>
<source>Tokens imported from </source>
<translation>Paramètres d&apos;OTP importés depuis</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="235"/>
<location filename="../qml/pages/ExportPage.qml" line="267"/>
<source>Unable to decrypt file, did you use the right password?</source>
<translation>Impossible de déchiffrer le fichier, utilisez-vous le bon mot de passe ?</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="238"/>
<location filename="../qml/pages/ExportPage.qml" line="270"/>
<source>Could not read from file </source>
<translation>Impossible de lire depuis le fichier</translation>
</message>

View file

@ -178,119 +178,120 @@
<context>
<name>ExportPage</name>
<message>
<location filename="../qml/pages/ExportPage.qml" line="63"/>
<location filename="../qml/pages/ExportPage.qml" line="64"/>
<source>File already exists, choose &quot;Overwrite existing&quot; to overwrite it.</source>
<translation>A fájl már létezik, válaszd a &quot;Meglévő felülírása&quot; lehetőséget a felülíráshoz.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="72"/>
<location filename="../qml/pages/ExportPage.qml" line="73"/>
<source>Given file does not exist!</source>
<translation>Az adott fájl nem létezik!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Export</source>
<translation>Exportálás</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Import</source>
<translation>Importálás</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="114"/>
<location filename="../qml/pages/ExportPage.qml" line="133"/>
<source>Filename</source>
<translation>Fájlnév</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="146"/>
<source>File to import</source>
<translation>Importálandó fájl</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<source>File to export</source>
<translation>Exportálandó fájl</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="128"/>
<location filename="../qml/pages/ExportPage.qml" line="156"/>
<source>Overwrite existing</source>
<translation>Meglévő felülírása</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<location filename="../qml/pages/ExportPage.qml" line="162"/>
<source>Password</source>
<translation>Jelszó</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="135"/>
<location filename="../qml/pages/ExportPage.qml" line="163"/>
<source>Password for the file</source>
<translation>Jelszó a fájlhoz</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords don&apos;t match!</source>
<translation>A jelszavak nem egyeznek!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords match!</source>
<translation>A jelszavak egyeznek!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="149"/>
<location filename="../qml/pages/ExportPage.qml" line="177"/>
<source>Repeated Password for the file</source>
<translation>Megismételt jelszó a fájlhoz</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="173"/>
<location filename="../qml/pages/ExportPage.qml" line="201"/>
<source>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.</source>
<translation>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.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>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.</source>
<translation>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.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>To view the content of the export file outside of SailOTP use the following openssl command:</source>
<translation>Az exportfájl tartalmának a SailOTP-n kívüli megtekintéséhez használd a következő openssl parancsokat:</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="211"/>
<location filename="../qml/pages/ExportPage.qml" line="240"/>
<source>Error writing to file </source>
<translation>Hiba a fájlba íráskor </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="213"/>
<location filename="../qml/pages/ExportPage.qml" line="242"/>
<source>Token Database exported to </source>
<translation>Tokenadatbázis exportálva ide: </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="216"/>
<location filename="../qml/pages/ExportPage.qml" line="245"/>
<location filename="../qml/pages/ExportPage.qml" line="248"/>
<source>Could not encrypt tokens. Error: </source>
<translation>A tokenek nem titkosíthatók. Hiba: </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="219"/>
<location filename="../qml/pages/ExportPage.qml" line="251"/>
<source>Could not read tokens from Database</source>
<translation>A tokenek nem olvashatók az adatbázisból</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="230"/>
<location filename="../qml/pages/ExportPage.qml" line="262"/>
<source>Tokens imported from </source>
<translation>Tokenek importálva innen: </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="235"/>
<location filename="../qml/pages/ExportPage.qml" line="267"/>
<source>Unable to decrypt file, did you use the right password?</source>
<translation>Nem lehet dekódolni a fájlt, a helyes jelszót használtad?</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="238"/>
<location filename="../qml/pages/ExportPage.qml" line="270"/>
<source>Could not read from file </source>
<translation>Nem olvasható a fájlból </translation>
</message>

View file

@ -178,119 +178,120 @@
<context>
<name>ExportPage</name>
<message>
<location filename="../qml/pages/ExportPage.qml" line="63"/>
<location filename="../qml/pages/ExportPage.qml" line="64"/>
<source>File already exists, choose &quot;Overwrite existing&quot; to overwrite it.</source>
<translation>Il file esiste già, scegli &quot;Sovrascrivi esistente&quot; per sovrascriverlo.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="72"/>
<location filename="../qml/pages/ExportPage.qml" line="73"/>
<source>Given file does not exist!</source>
<translation>Il file passato non esiste!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Export</source>
<translation>Esporta</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Import</source>
<translation>Importa</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="114"/>
<location filename="../qml/pages/ExportPage.qml" line="133"/>
<source>Filename</source>
<translation>Nome file</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="146"/>
<source>File to import</source>
<translation>File da importare</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<source>File to export</source>
<translation>File da esportare</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="128"/>
<location filename="../qml/pages/ExportPage.qml" line="156"/>
<source>Overwrite existing</source>
<translation>Sovrascrivi esistente</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<location filename="../qml/pages/ExportPage.qml" line="162"/>
<source>Password</source>
<translation>Password</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="135"/>
<location filename="../qml/pages/ExportPage.qml" line="163"/>
<source>Password for the file</source>
<translation>Password per il file</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords don&apos;t match!</source>
<translation>Le password non corrispondono!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords match!</source>
<translation>Le password corrispondono!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="149"/>
<location filename="../qml/pages/ExportPage.qml" line="177"/>
<source>Repeated Password for the file</source>
<translation>Password Ripetuta per il file</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="173"/>
<location filename="../qml/pages/ExportPage.qml" line="201"/>
<source>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.</source>
<translation>Da qua puoi Importare i Token da un file. Inserisci la posizione del file e la password usata nell&apos;esportazione. Scorri a sinistra per iniziare l&apos;importazione.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>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.</source>
<translation>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&apos;esportazione.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>To view the content of the export file outside of SailOTP use the following openssl command:</source>
<translation>Per vedere il contenuto del file esportato al di fuori di SailORP usa il seguente comando openssl:</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="211"/>
<location filename="../qml/pages/ExportPage.qml" line="240"/>
<source>Error writing to file </source>
<translation>Errore in scrittura del file </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="213"/>
<location filename="../qml/pages/ExportPage.qml" line="242"/>
<source>Token Database exported to </source>
<translation>Database dei Toen esportato su </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="216"/>
<location filename="../qml/pages/ExportPage.qml" line="245"/>
<location filename="../qml/pages/ExportPage.qml" line="248"/>
<source>Could not encrypt tokens. Error: </source>
<translation>Impossibile criptare i token. Errore: </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="219"/>
<location filename="../qml/pages/ExportPage.qml" line="251"/>
<source>Could not read tokens from Database</source>
<translation>Impossibile leggere i token dal Database</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="230"/>
<location filename="../qml/pages/ExportPage.qml" line="262"/>
<source>Tokens imported from </source>
<translation>Token importati da </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="235"/>
<location filename="../qml/pages/ExportPage.qml" line="267"/>
<source>Unable to decrypt file, did you use the right password?</source>
<translation>Non ho potuto decrittare il file, hai scritto la password correttamente?</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="238"/>
<location filename="../qml/pages/ExportPage.qml" line="270"/>
<source>Could not read from file </source>
<translation>Impossibile leggere dal file </translation>
</message>

View file

@ -178,119 +178,120 @@
<context>
<name>ExportPage</name>
<message>
<location filename="../qml/pages/ExportPage.qml" line="63"/>
<location filename="../qml/pages/ExportPage.qml" line="64"/>
<source>File already exists, choose &quot;Overwrite existing&quot; to overwrite it.</source>
<translation>Bestand bestaat al, kies &quot;Bestaande overschrijven&quot; om het te overschrijven.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="72"/>
<location filename="../qml/pages/ExportPage.qml" line="73"/>
<source>Given file does not exist!</source>
<translation>Bestand bestaat niet!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Export</source>
<translation>Exporteer</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Import</source>
<translation>Importeer</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="114"/>
<location filename="../qml/pages/ExportPage.qml" line="133"/>
<source>Filename</source>
<translation>Bestandsnaam</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="146"/>
<source>File to import</source>
<translation>Bestand om te importeren</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<source>File to export</source>
<translation>Bestand om te exporteren</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="128"/>
<location filename="../qml/pages/ExportPage.qml" line="156"/>
<source>Overwrite existing</source>
<translation>Bestaand bestand overschrijven</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<location filename="../qml/pages/ExportPage.qml" line="162"/>
<source>Password</source>
<translation>Wachtwoord</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="135"/>
<location filename="../qml/pages/ExportPage.qml" line="163"/>
<source>Password for the file</source>
<translation>Wachtwoord voor het bestand</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords don&apos;t match!</source>
<translation>Wachtwoorden komen niet overeen!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords match!</source>
<translation>Wachtwoorden komen overeen!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="149"/>
<location filename="../qml/pages/ExportPage.qml" line="177"/>
<source>Repeated Password for the file</source>
<translation>Herhaal wachtwoord voor het bestand</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="173"/>
<location filename="../qml/pages/ExportPage.qml" line="201"/>
<source>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.</source>
<translation>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.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>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.</source>
<translation>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.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>To view the content of the export file outside of SailOTP use the following openssl command:</source>
<translation>Als u de inhoud van het exportbestand buiten SailOTP wilt bekijken, gebruikt u de volgende OpenSSL-opdracht:</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="211"/>
<location filename="../qml/pages/ExportPage.qml" line="240"/>
<source>Error writing to file </source>
<translation>Fout bij schrijven naar bestand </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="213"/>
<location filename="../qml/pages/ExportPage.qml" line="242"/>
<source>Token Database exported to </source>
<translation>Token Database geexporteerd naar </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="216"/>
<location filename="../qml/pages/ExportPage.qml" line="245"/>
<location filename="../qml/pages/ExportPage.qml" line="248"/>
<source>Could not encrypt tokens. Error: </source>
<translation>Kan tokens niet coderen. Fout: </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="219"/>
<location filename="../qml/pages/ExportPage.qml" line="251"/>
<source>Could not read tokens from Database</source>
<translation>Kan geen tokens uit database lezen</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="230"/>
<location filename="../qml/pages/ExportPage.qml" line="262"/>
<source>Tokens imported from </source>
<translation>Tokens geimporteerd uit </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="235"/>
<location filename="../qml/pages/ExportPage.qml" line="267"/>
<source>Unable to decrypt file, did you use the right password?</source>
<translation>Kan het bestand niet ontsleutelen, heeft u het juiste wachtwoord gebruikt?</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="238"/>
<location filename="../qml/pages/ExportPage.qml" line="270"/>
<source>Could not read from file </source>
<translation>Kan niet lezen uit bestand </translation>
</message>

View file

@ -178,119 +178,120 @@
<context>
<name>ExportPage</name>
<message>
<location filename="../qml/pages/ExportPage.qml" line="63"/>
<location filename="../qml/pages/ExportPage.qml" line="64"/>
<source>File already exists, choose &quot;Overwrite existing&quot; to overwrite it.</source>
<translation>Arquivo existe, habilite &quot;Sobrescrever existente&quot; para sobrescrevê-lo.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="72"/>
<location filename="../qml/pages/ExportPage.qml" line="73"/>
<source>Given file does not exist!</source>
<translation>Não foi possíve encontrar o arquivo!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Export</source>
<translation>Exportar</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Import</source>
<translation>Importar</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="114"/>
<location filename="../qml/pages/ExportPage.qml" line="133"/>
<source>Filename</source>
<translation>Nome do arquivo</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="146"/>
<source>File to import</source>
<translation>Arquivo para importar</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<source>File to export</source>
<translation>Arquivo para exportar</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="128"/>
<location filename="../qml/pages/ExportPage.qml" line="156"/>
<source>Overwrite existing</source>
<translation>Sobrescrever existente</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<location filename="../qml/pages/ExportPage.qml" line="162"/>
<source>Password</source>
<translation>Senha</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="135"/>
<location filename="../qml/pages/ExportPage.qml" line="163"/>
<source>Password for the file</source>
<translation>Insira a senha do arquivo aqui</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords don&apos;t match!</source>
<translation>As senhas não coincidem!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords match!</source>
<translation>Senha correta</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="149"/>
<location filename="../qml/pages/ExportPage.qml" line="177"/>
<source>Repeated Password for the file</source>
<translation>Confirme a senha do arquivo aqui</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="173"/>
<location filename="../qml/pages/ExportPage.qml" line="201"/>
<source>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.</source>
<translation>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.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>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.</source>
<translation>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.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>To view the content of the export file outside of SailOTP use the following openssl command:</source>
<translation>Para visualizar o conteúdo do arquivo expotado fora do SailOTP use o seguinte comando openssl:</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="211"/>
<location filename="../qml/pages/ExportPage.qml" line="240"/>
<source>Error writing to file </source>
<translation>Não foi possível escrever no arquivo</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="213"/>
<location filename="../qml/pages/ExportPage.qml" line="242"/>
<source>Token Database exported to </source>
<translation>Base de dados dos Tokens exportada para</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="216"/>
<location filename="../qml/pages/ExportPage.qml" line="245"/>
<location filename="../qml/pages/ExportPage.qml" line="248"/>
<source>Could not encrypt tokens. Error: </source>
<translation>Não foi possível criptografar Tokens. Erro:</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="219"/>
<location filename="../qml/pages/ExportPage.qml" line="251"/>
<source>Could not read tokens from Database</source>
<translation>Não foi possível ler Tokens da base de dados</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="230"/>
<location filename="../qml/pages/ExportPage.qml" line="262"/>
<source>Tokens imported from </source>
<translation>Tokens importados de</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="235"/>
<location filename="../qml/pages/ExportPage.qml" line="267"/>
<source>Unable to decrypt file, did you use the right password?</source>
<translation>Não foi possível decriptografar arquivo, por favor cheque a senha.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="238"/>
<location filename="../qml/pages/ExportPage.qml" line="270"/>
<source>Could not read from file </source>
<translation>Não foi possível ler arquivo</translation>
</message>

View file

@ -178,120 +178,121 @@
<context>
<name>ExportPage</name>
<message>
<location filename="../qml/pages/ExportPage.qml" line="63"/>
<location filename="../qml/pages/ExportPage.qml" line="64"/>
<source>File already exists, choose &quot;Overwrite existing&quot; to overwrite it.</source>
<translation>Файл уже существует, выберите: «Перезаписать существующий» для его перезаписи.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="72"/>
<location filename="../qml/pages/ExportPage.qml" line="73"/>
<source>Given file does not exist!</source>
<translation>Данный файл не существует!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Export</source>
<translation>Экспорт</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Import</source>
<translation>Импорт</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="114"/>
<location filename="../qml/pages/ExportPage.qml" line="133"/>
<source>Filename</source>
<translation>Имя файла</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="146"/>
<source>File to import</source>
<translation>Файл для импорта</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<source>File to export</source>
<translation>Файл для экспорта</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="128"/>
<location filename="../qml/pages/ExportPage.qml" line="156"/>
<source>Overwrite existing</source>
<translation>Перезаписать существующий</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<location filename="../qml/pages/ExportPage.qml" line="162"/>
<source>Password</source>
<translation>Пароль</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="135"/>
<location filename="../qml/pages/ExportPage.qml" line="163"/>
<source>Password for the file</source>
<translation>Пароль для файла</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords don&apos;t match!</source>
<translation>Пароли не совпадают!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords match!</source>
<translation>Пароли совпадают!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="149"/>
<location filename="../qml/pages/ExportPage.qml" line="177"/>
<source>Repeated Password for the file</source>
<translation>Повторный пароль для файла</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="173"/>
<location filename="../qml/pages/ExportPage.qml" line="201"/>
<source>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.</source>
<translation>Здесь можно импортировать токены из файла. Введите путь к файлу и пароль, использованный при экспорте. Потяните влево чтобы начать импорт.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>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.</source>
<translation>Здесь можно экспортировать токены в файл. Экспортированный файл будет зашифрован с использованием AES-256-CBC и кодирован в Base64. Выберите сильный пароль файл будет содержать секреты, использованные для генерации токенов для Ваших аккаунтов. Потяните влево чтобы начать экспорт.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>To view the content of the export file outside of SailOTP use the following openssl command:</source>
<translatorcomment>Translated using Google Translate</translatorcomment>
<translation>Чтобы просмотреть содержимое файла экспорта за пределами SailOTP, используйте следующую команду openssl:</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="211"/>
<location filename="../qml/pages/ExportPage.qml" line="240"/>
<source>Error writing to file </source>
<translation>Ошибка при записи в файл </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="213"/>
<location filename="../qml/pages/ExportPage.qml" line="242"/>
<source>Token Database exported to </source>
<translation>База данных токенов экспортирована в </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="216"/>
<location filename="../qml/pages/ExportPage.qml" line="245"/>
<location filename="../qml/pages/ExportPage.qml" line="248"/>
<source>Could not encrypt tokens. Error: </source>
<translation>Не удалось зашифровать токены. Ошибка: </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="219"/>
<location filename="../qml/pages/ExportPage.qml" line="251"/>
<source>Could not read tokens from Database</source>
<translation>Не удалось прочесть токены из базы данных</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="230"/>
<location filename="../qml/pages/ExportPage.qml" line="262"/>
<source>Tokens imported from </source>
<translation>Токены импортированы из </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="235"/>
<location filename="../qml/pages/ExportPage.qml" line="267"/>
<source>Unable to decrypt file, did you use the right password?</source>
<translation>Не удалось расшифровать файл. Был ли введен правильный пароль?</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="238"/>
<location filename="../qml/pages/ExportPage.qml" line="270"/>
<source>Could not read from file </source>
<translation>Не удалось прочесть из файла </translation>
</message>

View file

@ -178,119 +178,120 @@
<context>
<name>ExportPage</name>
<message>
<location filename="../qml/pages/ExportPage.qml" line="63"/>
<location filename="../qml/pages/ExportPage.qml" line="64"/>
<source>File already exists, choose &quot;Overwrite existing&quot; to overwrite it.</source>
<translation>Filen finns redan. Välj &quot;Skriv över befintlig&quot; för att skriva över den.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="72"/>
<location filename="../qml/pages/ExportPage.qml" line="73"/>
<source>Given file does not exist!</source>
<translation>Angiven fil finns inte!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Export</source>
<translation>Exportera</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Import</source>
<translation>Importera</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="114"/>
<location filename="../qml/pages/ExportPage.qml" line="133"/>
<source>Filename</source>
<translation>Filnamn</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="146"/>
<source>File to import</source>
<translation>Fil att importera</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<source>File to export</source>
<translation>Fil att exportera</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="128"/>
<location filename="../qml/pages/ExportPage.qml" line="156"/>
<source>Overwrite existing</source>
<translation>Skriv över befintlig</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<location filename="../qml/pages/ExportPage.qml" line="162"/>
<source>Password</source>
<translation>Lösenord</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="135"/>
<location filename="../qml/pages/ExportPage.qml" line="163"/>
<source>Password for the file</source>
<translation>Lösenord för filen</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords don&apos;t match!</source>
<translation>Lösenorden stämmer inte!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords match!</source>
<translation>Lösenorden stämmer!</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="149"/>
<location filename="../qml/pages/ExportPage.qml" line="177"/>
<source>Repeated Password for the file</source>
<translation>Upprepat lösenordet för filen</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="173"/>
<location filename="../qml/pages/ExportPage.qml" line="201"/>
<source>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.</source>
<translation>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.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>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.</source>
<translation>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.</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>To view the content of the export file outside of SailOTP use the following openssl command:</source>
<translation>För att visa innehållet i exportfilen utanför SailOTP, använder du följande openssl-kommando:</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="211"/>
<location filename="../qml/pages/ExportPage.qml" line="240"/>
<source>Error writing to file </source>
<translation>Fel vid skrivning till fil </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="213"/>
<location filename="../qml/pages/ExportPage.qml" line="242"/>
<source>Token Database exported to </source>
<translation>Token-databas exporterad till </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="216"/>
<location filename="../qml/pages/ExportPage.qml" line="245"/>
<location filename="../qml/pages/ExportPage.qml" line="248"/>
<source>Could not encrypt tokens. Error: </source>
<translation>Kunde inte kryptera token. Fel: </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="219"/>
<location filename="../qml/pages/ExportPage.qml" line="251"/>
<source>Could not read tokens from Database</source>
<translation>Kunde inte läsa token från databasen</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="230"/>
<location filename="../qml/pages/ExportPage.qml" line="262"/>
<source>Tokens imported from </source>
<translation>Token importerade från </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="235"/>
<location filename="../qml/pages/ExportPage.qml" line="267"/>
<source>Unable to decrypt file, did you use the right password?</source>
<translation>Kunde inte dekryptera filen. Angav du rätt lösenord?</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="238"/>
<location filename="../qml/pages/ExportPage.qml" line="270"/>
<source>Could not read from file </source>
<translation>Kunde inte läsa från fil </translation>
</message>

View file

@ -178,119 +178,120 @@
<context>
<name>ExportPage</name>
<message>
<location filename="../qml/pages/ExportPage.qml" line="63"/>
<location filename="../qml/pages/ExportPage.qml" line="64"/>
<source>File already exists, choose &quot;Overwrite existing&quot; to overwrite it.</source>
<translation>&quot;&quot;</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="72"/>
<location filename="../qml/pages/ExportPage.qml" line="73"/>
<source>Given file does not exist!</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Export</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Import</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="114"/>
<location filename="../qml/pages/ExportPage.qml" line="133"/>
<source>Filename</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="146"/>
<source>File to import</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<source>File to export</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="128"/>
<location filename="../qml/pages/ExportPage.qml" line="156"/>
<source>Overwrite existing</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<location filename="../qml/pages/ExportPage.qml" line="162"/>
<source>Password</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="135"/>
<location filename="../qml/pages/ExportPage.qml" line="163"/>
<source>Password for the file</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords don&apos;t match!</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords match!</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="149"/>
<location filename="../qml/pages/ExportPage.qml" line="177"/>
<source>Repeated Password for the file</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="173"/>
<location filename="../qml/pages/ExportPage.qml" line="201"/>
<source>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.</source>
<translation>使</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>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.</source>
<translation>使AES-256-CBC和Base64编码进行加密</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>To view the content of the export file outside of SailOTP use the following openssl command:</source>
<translation>SailfOTP外面查看导出的文件使openssl命令</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="211"/>
<location filename="../qml/pages/ExportPage.qml" line="240"/>
<source>Error writing to file </source>
<translation> </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="213"/>
<location filename="../qml/pages/ExportPage.qml" line="242"/>
<source>Token Database exported to </source>
<translation> </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="216"/>
<location filename="../qml/pages/ExportPage.qml" line="245"/>
<location filename="../qml/pages/ExportPage.qml" line="248"/>
<source>Could not encrypt tokens. Error: </source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="219"/>
<location filename="../qml/pages/ExportPage.qml" line="251"/>
<source>Could not read tokens from Database</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="230"/>
<location filename="../qml/pages/ExportPage.qml" line="262"/>
<source>Tokens imported from </source>
<translation> </translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="235"/>
<location filename="../qml/pages/ExportPage.qml" line="267"/>
<source>Unable to decrypt file, did you use the right password?</source>
<translation>使</translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="238"/>
<location filename="../qml/pages/ExportPage.qml" line="270"/>
<source>Could not read from file </source>
<translation> </translation>
</message>

View file

@ -178,119 +178,120 @@
<context>
<name>ExportPage</name>
<message>
<location filename="../qml/pages/ExportPage.qml" line="63"/>
<location filename="../qml/pages/ExportPage.qml" line="64"/>
<source>File already exists, choose &quot;Overwrite existing&quot; to overwrite it.</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="72"/>
<location filename="../qml/pages/ExportPage.qml" line="73"/>
<source>Given file does not exist!</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Export</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="91"/>
<location filename="../qml/pages/ExportPage.qml" line="107"/>
<location filename="../qml/pages/ExportPage.qml" line="97"/>
<location filename="../qml/pages/ExportPage.qml" line="126"/>
<source>Import</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="114"/>
<location filename="../qml/pages/ExportPage.qml" line="133"/>
<source>Filename</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="146"/>
<source>File to import</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="115"/>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<source>File to export</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="128"/>
<location filename="../qml/pages/ExportPage.qml" line="156"/>
<source>Overwrite existing</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="134"/>
<location filename="../qml/pages/ExportPage.qml" line="162"/>
<source>Password</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="135"/>
<location filename="../qml/pages/ExportPage.qml" line="163"/>
<source>Password for the file</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords don&apos;t match!</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="148"/>
<location filename="../qml/pages/ExportPage.qml" line="176"/>
<source>Passwords match!</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="149"/>
<location filename="../qml/pages/ExportPage.qml" line="177"/>
<source>Repeated Password for the file</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="173"/>
<location filename="../qml/pages/ExportPage.qml" line="201"/>
<source>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.</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>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.</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="189"/>
<location filename="../qml/pages/ExportPage.qml" line="217"/>
<source>To view the content of the export file outside of SailOTP use the following openssl command:</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="211"/>
<location filename="../qml/pages/ExportPage.qml" line="240"/>
<source>Error writing to file </source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="213"/>
<location filename="../qml/pages/ExportPage.qml" line="242"/>
<source>Token Database exported to </source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="216"/>
<location filename="../qml/pages/ExportPage.qml" line="245"/>
<location filename="../qml/pages/ExportPage.qml" line="248"/>
<source>Could not encrypt tokens. Error: </source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="219"/>
<location filename="../qml/pages/ExportPage.qml" line="251"/>
<source>Could not read tokens from Database</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="230"/>
<location filename="../qml/pages/ExportPage.qml" line="262"/>
<source>Tokens imported from </source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="235"/>
<location filename="../qml/pages/ExportPage.qml" line="267"/>
<source>Unable to decrypt file, did you use the right password?</source>
<translation></translation>
</message>
<message>
<location filename="../qml/pages/ExportPage.qml" line="238"/>
<location filename="../qml/pages/ExportPage.qml" line="270"/>
<source>Could not read from file </source>
<translation></translation>
</message>