简体   繁体   中英

Searchable encryption method (for a dummy!)

I am attempting to 'secure' (as I know it won't be very secure) the data in a indexedDB on the client side for an OFFLINE WEB APP (ie anyone who is attempting to access the data will be able to see the encryption method used so I am aware that makes brute force pretty damned easy!)

I am going to encrypt it using the Username and Password as that is the only thing I could possibly keep secret.

There are loads of ways to do this, however I have one requirement that has me stumped - I need to maintain the ability to be able to search the database.

Can anybody point me in the direction of how I can encrypt data but still be able to search it.

The encryption doesn't have to be bank-level security by any means, just want to protect the database in case a tablet etc. got lost so that 99% of people wouldn't be able to view the data directly.

You can try my library, ydn-db . For encrypted, you can only search by primary key only thought.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM