From 71217541067f2b39d17f2ec0652a67f453111fc9 Mon Sep 17 00:00:00 2001 From: Aslan2142 Date: Sat, 20 Aug 2022 13:13:54 -0400 Subject: [PATCH 1/4] Fix build --- passman.h | 1 + 1 file changed, 1 insertion(+) diff --git a/passman.h b/passman.h index fd13ea4..3d9b80c 100755 --- a/passman.h +++ b/passman.h @@ -3,6 +3,7 @@ #include #include +#include #include #include #include From a453286ba704b378fff64274ac3295890c70c3db Mon Sep 17 00:00:00 2001 From: Aslan2142 Date: Sat, 20 Aug 2022 13:15:02 -0400 Subject: [PATCH 2/4] Fix critical bug where a collumn with newline or tab would scramble the data --- passman.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/passman.cpp b/passman.cpp index 9f8ba1b..c1d9140 100755 --- a/passman.cpp +++ b/passman.cpp @@ -34,6 +34,8 @@ void passman::encrypt() { for (QString& entry_column : entry_row) { + entry_column = entry_column.replace("\n", ""); + entry_column = entry_column.replace("\t", ""); data.append((entry_column + '\t').toLocal8Bit()); } data.append(QString('\n').toLocal8Bit()); @@ -66,6 +68,7 @@ bool passman::decrypt() { if (ch == '\n') { + std::cout << line.toStdString() << std::endl; if (line == "password") { line = ""; From f3ea5d2e3845348552e2d38b128c84315117d9a9 Mon Sep 17 00:00:00 2001 From: Aslan2142 Date: Sat, 20 Aug 2022 13:17:43 -0400 Subject: [PATCH 3/4] Update version number to 1.0.4 --- PKGBUILD_amd64 | 2 +- PKGBUILD_arm64 | 2 +- README.md | 2 +- control_amd64 | 2 +- control_arm64 | 2 +- main.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/PKGBUILD_amd64 b/PKGBUILD_amd64 index 6354c80..19cda1b 100755 --- a/PKGBUILD_amd64 +++ b/PKGBUILD_amd64 @@ -1,5 +1,5 @@ pkgname=passman -pkgver=1.0.3 +pkgver=1.0.4 pkgrel=1 pkgdesc="A Simple Password Manager with AES-256 Encryption" arch=('x86_64') diff --git a/PKGBUILD_arm64 b/PKGBUILD_arm64 index fd0ad5f..2441611 100755 --- a/PKGBUILD_arm64 +++ b/PKGBUILD_arm64 @@ -1,5 +1,5 @@ pkgname=passman -pkgver=1.0.3 +pkgver=1.0.4 pkgrel=1 pkgdesc="A Simple Password Manager with AES-256 Encryption" arch=('aarch64') diff --git a/README.md b/README.md index 2312547..df902f0 100755 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A Simple Password Manager with AES-256 Encryption
Files **qaesencryption.cpp** and **qaesencryption.h** are from [This Repo](https://github.com/bricke/Qt-AES) -Version 1.0.3
+Version 1.0.4
![screenshot.png](screenshot.png) diff --git a/control_amd64 b/control_amd64 index 137f86d..aa69764 100755 --- a/control_amd64 +++ b/control_amd64 @@ -1,5 +1,5 @@ Package: passman -Version: 1.0.3 +Version: 1.0.4 Section: utils Priority: optional Architecture: amd64 diff --git a/control_arm64 b/control_arm64 index a6b0d18..bd6f521 100755 --- a/control_arm64 +++ b/control_arm64 @@ -1,5 +1,5 @@ Package: passman -Version: 1.0.3 +Version: 1.0.4 Section: utils Priority: optional Architecture: arm64 diff --git a/main.cpp b/main.cpp index 9fab71d..a1d011d 100755 --- a/main.cpp +++ b/main.cpp @@ -6,7 +6,7 @@ int main(int argc, char *argv[]) { - QString version = "1.0.3"; + QString version = "1.0.4"; //Run GUI if no arguments are passed if (argc == 1) From 5dce7c0d27c4515df1566c57043b8d6ca8345784 Mon Sep 17 00:00:00 2001 From: Aslan2142 Date: Sat, 20 Aug 2022 13:22:23 -0400 Subject: [PATCH 4/4] Remove unnecessary console log --- passman.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/passman.cpp b/passman.cpp index c1d9140..12c8ecd 100755 --- a/passman.cpp +++ b/passman.cpp @@ -68,7 +68,6 @@ bool passman::decrypt() { if (ch == '\n') { - std::cout << line.toStdString() << std::endl; if (line == "password") { line = "";