Coder Social home page Coder Social logo

Encryption Support about drift HOT 4 CLOSED

simolus3 avatar simolus3 commented on May 16, 2024 4
Encryption Support

from drift.

Comments (4)

simolus3 avatar simolus3 commented on May 16, 2024 6

Now that moor 1.7 is released, you can try out an encrypted version by following the instructions at https://github.com/simolus3/moor/tree/master/extras/encryption. The EncryptedExecutor has a password parameter in its constructor which will be used to encrypt the database. As we just change the underlying database engine, all features supported by moor_flutter are supported on that version as well.

As always, if you have any questions or problems, feel free to reply here or open another issue, thanks!

from drift.

simolus3 avatar simolus3 commented on May 16, 2024 2

On the develop branch, we now have the encrypted_moor library that supports encryption in the extras/encryption folder. It uses sqflite_sqlcipher as implementation. That library isn't on pub, so the moor bindings probably won't be either - the folder contains instructions on how to use the library.
The encrypted version won't work with the current moor version (1.6), but it will work with the next version. I'll keep the library updated to always work with the latest version of moor after that, and hopefully write some integration tests to verify that soon.

As an alternative, when dart:ffi gets stable and we can ship our own bindings, using SQLCipher might be a viable alternative in the future.

from drift.

simolus3 avatar simolus3 commented on May 16, 2024

This would depend on the underlying database engine. Moor currently uses the sqflite package internally, which doesn't support encryption.
There are some forks which seem to support encryption, but I'm not sure if any of them works well enough. In theory, all that needs to be done is changing this file to use such fork.

from drift.

dinbtechit avatar dinbtechit commented on May 16, 2024

On the develop branch, we now have the encrypted_moor library that supports encryption in the extras/encryption folder. It uses sqflite_sqlcipher as implementation. That library isn't on pub, so the moor bindings probably won't be either - the folder contains instructions on how to use the library.
The encrypted version won't work with the current moor version (1.6), but it will work with the next version. I'll keep the library updated to always work with the latest version of moor after that, and hopefully write some integration tests to verify that soon.

As an alternative, when dart:ffi gets stable and we can ship our own bindings, using SQLCipher might be a viable alternative in the future.

Looking forward for the encryption feature.

from drift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.