Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to import and export encrypted database - Capacitor Sqlite Plugin? #6

Open
sadamameer opened this issue Aug 29, 2023 · 1 comment

Comments

@sadamameer
Copy link

Hello developers,

I am using the capacitor sqlite plugin with vue.js and developing the native mobile apps. The issue I am facing is, after encrypting the database the exportToJson function does not provide the valid json that could be imported later. This is generating some expData object having base64 encoded string.

My question is how could I import this base64 encoded string by using importFromJson method? Currently its showing invalid json all the time.

Please help as soon as possible.

Thanks and keep the good work up.

@sadamameer
Copy link
Author

Is it not possible to import data when expData contains a base64 string? Is there an alternative solution? Could we potentially utilize an encrypted database for simultaneous import and export?
@jepiqueau

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant