Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » Sqlite3 ChangePassword() failed.
Re: Sqlite3 ChangePassword() failed. [message #59958 is a reply to message #59957] Mon, 19 June 2023 15:35 Go to previous messageGo to previous message
coolman is currently offline  coolman
Messages: 119
Registered: April 2006
Location: Czech Republic
Experienced Member
Hi,

From the comment in the int Sqlite3Session::SetDBEncryption(int cipher)
	// "default:cipher" => use SQLCipher during the entire lifetime of database instance
	// CIPHER_CHAHA2020_SQLEET settings are backward compatible with the previous sqleet implementation in the U++
	// Note: It is not recommended to use legacy mode for encrypting new databases. It is supported for compatibility
	// reasons only, so that databases that were encrypted in legacy mode can be accessed.


So, if you will use cipher Upp::Sqlite3Session::CIPHER_CHAHA2020_DEFAULT, there is no problem (legacy is not set).

if(!sqlite3.Open(ConfigFile("simple.db"), "test", Upp::Sqlite3Session::CIPHER_CHAHA2020_DEFAULT)) {
...

sqlite3.ChangePassword("test_new", Upp::Sqlite3Session::CIPHER_CHAHA2020_DEFAULT);


BR, Radek
 
Read Message
Read Message
Read Message icon14.gif
Previous Topic: Transfer compress data
Next Topic: Bitwise and, or, xor in sql
Goto Forum:
  


Current Time: Mon Sep 01 14:17:59 CEST 2025

Total time taken to generate the page: 0.05819 seconds