mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-27 22:34:51 +00:00
controller: add db passphrase test command (#3788)
* controller: add passphrase test * refactor --------- Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
This commit is contained in:
co-authored by
Evgeny Poberezkin
parent
d83a6b7133
commit
364b62320b
@@ -1124,6 +1124,10 @@ testDatabaseEncryption tmp = do
|
||||
testChatWorking alice bob
|
||||
alice ##> "/_stop"
|
||||
alice <## "chat stopped"
|
||||
alice ##> "/db test key wrongkey"
|
||||
alice <## "error opening database after encryption: wrong passphrase or invalid database file"
|
||||
alice ##> "/db test key mykey"
|
||||
alice <## "ok"
|
||||
alice ##> "/db key wrongkey nextkey"
|
||||
alice <## "error encrypting database: wrong passphrase or invalid database file"
|
||||
alice ##> "/db key mykey nextkey"
|
||||
|
||||
Reference in New Issue
Block a user