Home » U++ Library support » U++ SQL » Sqlite3 ChangePassword() failed.
Sqlite3 ChangePassword() failed. [message #59957] |
Mon, 19 June 2023 13:35 |
zouql
Messages: 15 Registered: December 2020 Location: China
|
Promising Member |
|
|
Helo
when I test the sqlite3 at reference/SQL_sqlite3, I found a question about
ChangePassword() function.
Step 1: Use sqlite3.Open(file, "password") create an encrypted db file.
Step 2: Use sqlite3.ChangePassword("password_changed") change the file's password.
Step 3: Use sqlite3.Open(file, "password_changed") to open the db again.
The problem occurred in th third step, when I opened the db file with changed password, that failed about "ERROR file is not a database(26)".
I am not familiar with encryption. Can anyone test and answer this question?
Thanks.
1. create a encrypted file.
2. change password
3. use newpassword open failed.
-
Attachment: sqlite_1.jpg
(Size: 277.04KB, Downloaded 190 times)
-
Attachment: sqlite_2.jpg
(Size: 269.02KB, Downloaded 180 times)
-
Attachment: sqlite_3.jpg
(Size: 303.99KB, Downloaded 193 times)
[Updated on: Mon, 19 June 2023 13:38] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Fri Nov 01 00:53:45 CET 2024
Total time taken to generate the page: 0.02081 seconds
|