update// added really goody stuff :D

This commit is contained in:
Strider
2020-05-23 19:50:36 +02:00
parent 6c30656847
commit c6dff48643
2 changed files with 15 additions and 38 deletions

View File

@@ -86,13 +86,6 @@ void FileSystem::writeContactsOldFormat(QString file, QList<ContactItem> contact
QList<ContactItem> FileSystem::readContactsOldFormat(QString file)
{
const unsigned char* data=PASSWD::hash(QString("Hello world"));
PASSWD::show_hex_buff((unsigned char*) data);
QString source_file = "/tmp/addresslabels.dat";
QString target_file = "/tmp/addresslabels.dat.enc";
FileEncryption::encrypt(target_file, source_file, data);
FileEncryption::decrypt("/tmp/addresslabels.dat.dec", target_file, data);
QList<ContactItem> contacts;
QFile _file(file);
if (_file.exists())