status-im / nim-sqlcipher Goto Github PK
View Code? Open in Web Editor NEWSQLCipher Wrapper
License: MIT License
SQLCipher Wrapper
License: MIT License
As suggested in the nim manual, we can prevent SQL injection attacks by requiring a distinct type of string for DbValue.strVal
.
tiny_sqlite
does not support automatic sql injection attacks on string types, as outlined in the open issue: GULPF/tiny_sqlite#11.
Possible solution: https://nim-lang.org/docs/db_common.html#sql.t%2Cstring
Involves rebasing (and refactoring a bit) #18.
PR #12 (which is really great!) uses a proper msys2 environment for Windows instead of the minimal one provided by Git for Windows.
Before merging that PR, I want/need to become a bit more familiar with setting up a local msys2 environment. Also, nim-status' GitHub Actions workflow should be modified to work in the same way as it's refactored in #12 for this repo. Once that's done then #12 can be merged along with the corresponding PR in nim-status.
Related to #18 and status-im/nim-status#113.
SQLite does support use of TRUE and FALSE literals, translating them automatically to 1 and 0, respectively, since it doesn't have a boolean type per se.
See: https://www.db-fiddle.com/f/6RiUjLadVjuoh8otChkagD/0
However, that's not what we're experiencing, requiring us to use 1/0 instead of TRUE/FALSE. That's really not ideal and prone to humans forgetting (and writing bugs) as we e.g. use this library within nim-status.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.