Compare commits

..
3 Commits
5 changed files with 29 additions and 6 deletions

No files matched your search

+16 -3
View File
@@ -39,7 +39,7 @@ It started as an idea to solve the problem of the meticulous process of logging
- Clone the repository
```bash
git clone https://github.com/adamecki/PWDer
git clone --recursive https://github.com/adamecki/PWDer
cd PWDer
git submodule init
```
@@ -92,6 +92,19 @@ python sync.py C:\your\database.kdbx
<b>Remember that your user should have the serial port privileges (like belonging to the `dialout` group on Linux)!</b>
## Excluding entries
Of course, not every password needs portability. The less passwords you carry with yourself, the better. Now deciding which passwords should PWDer include is easier, as there is no need to create a second database with only the required passwords.
In order to prevent your KeePass password from appearing in PWDer's vault, you should add a `!pwexclude` line in the notes of the entry.
<img src="./assets/photos/exclusion.png" alt="Entry excluded" width="480px">
During synchronization, the script will detect and ignore entry that has been marked as excluded.
<img src="./assets/photos/exclusion2.png" alt="Entry ignored" width="480px">
Then, it simply won't be sent to PWDer and won't appear there.
# Usage
## Main screen
This is where you can select a password to enter. The top bar represents the vault usage in %, and the bottom one is a scrollbar.
@@ -175,10 +188,10 @@ Otherwise, if you're writing an import file manually, you can add the secret key
### Where do I find the TOTP in PWDer's UI?
<img src="./assets/photos/preview.bmp" alt="TOTP is here" width="480px">
If the NTP requirements are met and your entry has a TOTP secret set, the entry title will be blue. After that, you can hold `v` to display the one time password: it will show on the right side of your username, or press `4` to enter it to your computer.
If the NTP requirements are met and your entry has a TOTP secret set, the entry title will change its colour. After that, you can hold `v` to display the one time password: it will show on the right side of your username, or press `4` to enter it to your computer.
## Lock screen
Here you have to enter the correct password (then press OK) to access the device. If you've locked yourself out, you can remove the `pwder/config` file from the SD card (the password will be "default" again), but keep in mind that all your saved passwords and configuration will disappear!
Here you have to enter the correct password (then press OK) to access the device. If you've locked yourself out, you can remove the `pwder.pvault` file from the SD card (the vault will regenerate and the password will be "default" again), but keep in mind that the passwords will also be lost!
<img src="./assets/photos/password.bmp" alt="lock" width="480px">
Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

+3
View File
@@ -16,6 +16,9 @@ monitor_speed = 115200
build_flags =
-DARDUINO_USB_CDC_ON_BOOT=0
-D USE_NIMBLE
; fallback esp_cpu_get_cycle_count definition for compatibility
; with arduino framework
-D "esp_cpu_get_cycle_count=esp_cpu_get_ccount"
lib_deps =
m5stack/M5Unified@^0.2.17
m5stack/M5Cardputer@^1.1.1
+10 -3
View File
@@ -235,11 +235,18 @@ print(bcolors.OKGREEN + "OK" + bcolors.ENDC)
print()
### Fill vault with data
print(bcolors.HEADER + "Reading KDBX data... " + bcolors.ENDC, end='')
print(bcolors.HEADER + "Reading KDBX data... " + bcolors.ENDC)
i = 0
ignored = 0
for entry in db.entries:
if i < 100:
if i < 100 + ignored:
if entry.notes:
if '!pwexclude' in entry.notes:
ignored += 1
print("Ignoring entry " + entry.title)
continue
vault.credential_count += 1
if not entry.title:
@@ -267,7 +274,7 @@ for entry in db.entries:
break
i += 1
print(bcolors.OKGREEN + "OK" + bcolors.ENDC)
print(bcolors.OKGREEN + f'OK. Total entry count: {vault.credential_count}.' + bcolors.ENDC)
print()
### Encrypt vault data