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

Possibility to Encrypt sqlite data base #3848

Open
DurankGts opened this issue Oct 15, 2024 · 5 comments
Open

Possibility to Encrypt sqlite data base #3848

DurankGts opened this issue Oct 15, 2024 · 5 comments

Comments

@DurankGts
Copy link
Contributor

Please provide a solution to encrypt the entire database sqlite in CN1. this very import security issue.

@DurankGts
Copy link
Contributor Author

accessing to database encrypting and decripting can impact the performace of the app. I think that create an implementation to Encrypt/decrypt sqlite data base is more eficient using native way.

@DurankGts
Copy link
Contributor Author

but thank you by your response sincerilly.

@Eric-Chomba
Copy link
Contributor

Eric-Chomba commented Oct 16, 2024

accessing to database encrypting and decripting can impact the performace of the app. I think that create an implementation to Encrypt/decrypt sqlite data base is more eficient using native way.

Encryption & decryption are fast and performance is okay as long as writer speed is optimal

https://stackoverflow.com/questions/78799260/how-can-writer-speed-be-enhanced/

For further optimization,

  1. FilesCipher class can be modified to encrypt bytes directly without encoding or decoding them to Base64
  2. FilesCipher can also be modified to encrypt using secret key only.

After these 2 modification, the encoding of the resulting encrypted database is similar to CN1Preferences which is encrypted using EncryptedStorage.install("your-pass-encryption-key")

@Eric-Chomba
Copy link
Contributor

accessing to database encrypting and decripting can impact the performace of the app. I think that create an implementation to Encrypt/decrypt sqlite data base is more eficient using native way.

Encryption & decryption are fast and performance is okay as long as writer speed is optimal

https://stackoverflow.com/questions/78799260/how-can-writer-speed-be-enhanced/

For further optimization,

  1. FilesCipher class can be modified to encrypt bytes directly without encoding or decoding them to Base64
  2. FilesCipher can also be modified to encrypt using secret key only.

After these 2 modification, the encoding of the resulting encrypted database is similar to CN1Preferences which is encrypted using EncryptedStorage.install("your-pass-encryption-key")

accessing to database encrypting and decripting can impact the performace of the app. I think that create an implementation to Encrypt/decrypt sqlite data base is more eficient using native way.

in iOS encrypting & decrypting the same database file throws an exception when accessing it. This can be solved via this

https://stackoverflow.com/questions/78962669/how-can-bytes-array-be-handled-successfully-in-ios-using-codename-one/79001947#79001947

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

2 participants