encrypt addresslabels

This commit is contained in:
DenioD
2020-05-23 12:44:13 +02:00
parent 335d0dc5ca
commit 1599f3631c

View File

@@ -307,6 +307,11 @@ void MainWindow::encryptWallet() {
qDebug()<<"secret key generated:\n";
dump_hex_buff(hash,crypto_secretstream_xchacha20poly1305_KEYBYTES);
QString source_file = "/home/denio/.local/share/Hush/SilentDragonLite/addresslabel.dat";
QString target_file = "/home/denio/.local/share/Hush/SilentDragonLite/addresslabel-encrypt.dat";
FileEncryption::encrypt(target_file, source_file, hash);
d.exec();