We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const Sequelize = require("sequelize"); const db = new Sequelize({ dialect: 'sqlite', storage: path.join(process.cwd(), "sample.db"), dialectModulePath: '@journeyapps/sqlcipher', logging: false, define: { freezeTableName: true } }); db.query("PRAGMA key = 'password'");
I am not able to open the sample.db file with sqlitebrowser SQLCIPHER 4.
The only way its works is by adding the below line and then use SQLICIPHER 3 in sqlitebrowser db.query('PRAGMA cipher_compatibility = 3');
db.query('PRAGMA cipher_compatibility = 3');
The text was updated successfully, but these errors were encountered:
Which version of this package are you using?
The SQLCipher 4 defaults should be used by default, so I'm not sure why this isn't working.
You can try to set the individual parameters explicitly to match sqlitebrowser:
PRAGMA cipher_page_size = 4096; PRAGMA kdf_iter = 256000; PRAGMA cipher_hmac_algorithm = HMAC_SHA512; PRAGMA cipher_kdf_algorithm = PBKDF2_HMAC_SHA512;
Sorry, something went wrong.
@rkistner I use @journeyapps/sqlcipher": "^4.1.0
I've tested with @journeyapps/sqlcipher versions 4.1.0 and 5.0.0, and couldn't reproduce in either version.
@journeyapps/sqlcipher
Tested with sqlitebrowser 3.12.99 / sqlcipher 4.3.0.
If you still run into the issue, I recommend:
Also check whether adding PRAGMA cipher_compatibility = 4 (before setting the key) makes a difference.
PRAGMA cipher_compatibility = 4
No branches or pull requests
I am not able to open the sample.db file with sqlitebrowser SQLCIPHER 4.
The only way its works is by adding the below line and then use SQLICIPHER 3 in sqlitebrowser
db.query('PRAGMA cipher_compatibility = 3');
The text was updated successfully, but these errors were encountered: