Code Monkey home page Code Monkey logo

Comments (6)

alextekartik avatar alextekartik commented on September 28, 2024

Not at the moment but that could easily be implemented by encrypting each record when saved to disk. It might have a performance impact at start time.

I will look into it, likely not before a week or 2. One solution I see would be to provide a way to decrypt/encrypt a record using a user function so that any algorithm could be provided

from sembast.dart.

alextekartik avatar alextekartik commented on September 28, 2024

I added a way to support encryption and an example of an encrypted database in 1.13.3 published on pub.
More information here: https://github.com/tekartik/sembast.dart/blob/master/sembast/doc/codec.md

from sembast.dart.

jagan999 avatar jagan999 commented on September 28, 2024

Thanks.

from sembast.dart.

zubairehman avatar zubairehman commented on September 28, 2024

The above link doesn't work, could you please add a sample code in an example project or provide a code snippet here encrypt a database. Thanks

from sembast.dart.

alextekartik avatar alextekartik commented on September 28, 2024

Sorry. I updated the link https://github.com/tekartik/sembast.dart/blob/master/sembast/doc/codec.md which contains a snippet. You can look at the unit test here as well:

// Initialize the encryption codec with a user password
var codec = getXXTeaSembastCodec(password: '[your_user_password]');
// Open the database with the codec
Database db = await factory.openDatabase(dbPath, codec: codec);
// ...your database is ready to use as encrypted

from sembast.dart.

zubairehman avatar zubairehman commented on September 28, 2024

from sembast.dart.

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.