gabfl / vault

Python password manager
MIT License
184 stars 50 forks source link

sqlcipher troubleshooting tool #65

Closed gabfl closed 2 years ago

gabfl commented 2 years ago

Usage:

python3 -m src.tools.troubleshoot_db

Output sample:

* Create dummy database: OK
* Check if dummy database is encrypted: OK
🔑  Please enter your master key:
* Key is: bob
* Database PRAGMA KEY:
  sqlcipher /Users/gab/.vault/.secure.db
  PRAGMA key = 'c8966e0bf5dac7c8b025fb53da0c8faecf361c678c82ac087b72cc4e9ca9a891';
!!! Attempt to query vault: ERROR (Database is not encrypted with supplied key)
* Test complete!
codecov[bot] commented 2 years ago

Codecov Report

Merging #65 (fd5c83c) into main (cc7eecd) will increase coverage by 0.19%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #65      +/-   ##
==========================================
+ Coverage   95.06%   95.26%   +0.19%     
==========================================
  Files          19       20       +1     
  Lines        1156     1204      +48     
==========================================
+ Hits         1099     1147      +48     
  Misses         57       57              
Impacted Files Coverage Δ
src/models/base.py 100.00% <100.00%> (ø)
src/tools/troubleshoot_db.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update cc7eecd...fd5c83c. Read the comment docs.