-
-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
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
Sequelize using SQLcipher to encrypt DB #729
Comments
Hello, can you please try a few things:
Let me know, thanks |
I was testing with version v4.0.0-1 but I had the same problem. However, I have the following question: is it possible to encrypt the database using sequelize in other way? How can I run the following command |
I am not familiar with database encryption unfortunately. I would suggest you try a direct raw query as early as possible in your code: |
@papb it works. Base on node-sqlcipher, I only have to put the following code:
|
Fantastic!! I will leave it open as a docs issue 😬 |
Do you create the documentation? |
@juancampuzano @papb How can we default it to use sqlcipher 4 without cipher_compatibility? |
This issue has been automatically marked as stale because it has been open for 7 days without activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment or remove the "stale" label. 🙂 |
Issue Description
I am trying to encrypt the database using SQLCipher. In the Sequelize documentation it says that it is possible to do: "Supports SQLCipher encryption for SQLite." But in the documentation I can't find the steps of how to do. I am trying to follow the following example found in Stackoverflow but I get the error: "SQLITE_NOTAD"
StackOverflow / Slack attempts
related case:
https://stackoverflow.com/questions/33363075/how-to-make-encrypted-sqlite3-database-with-nodejs-in-windows-platform
Is this issue dialect-specific?
Would you be willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: