Sign in to follow this  
Followers 0
optyk

Using file from memory as normal file

2 posts in this topic

I have a problem which struggles me since few days. I want to use sqlite database, read and write info there WITHOUT having it dropped (unencrypted) on disk. I want the database file to be encrypted with let's say RC4, and upon launching my app, the db file should be:

1. Loaded into memory

2. Decrypted in memory

3. App should access database data directly from memory

4. If there are any changes in database, app should encrypt the 'memory database file' and write it to the disk as encrypted database.

Can someone give me a hint, for example doing the above in Python? As I know, the database can be read only from some disk path like C:\db.sqlite, but how to do it when file is loaded in memory??

 

Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0