|
Post by egghead on Sept 23, 2018 1:54:43 GMT
required bundle_decrypter to application.rb as advised. Unfortunately it didn't work on Android device. The app still did not populate the DB on app start Other than that, it functioned normally @dmitry, did you get my app yesterday? If yes, could you please try testing it in Android device? Maybe I did something wrong.
|
|
|
Post by Dmitry Soldatenkov on Sept 23, 2018 2:29:28 GMT
I added to your code debug traces and see on my side file was loaded and was parsed. Try on your side this traces :
filepath = File.join(Rho::RhoApplication::get_model_path('app','CryptoTest'), 'state.txt'+'.encrypted')
decrypted_text = BundleDecrypter.decrypt_file(filepath, "aH9D52xfJJ89xgi3gGWTNmO0PU0rV8aHmm/P4tGHApM=")
puts "$$$ decrypted text = "+decrypted_text.to_s
jsonContent = Rho::JSON.parse(decrypted_text)
puts "$$$ parsed JSON = "+jsonContent.to_s
|
|
|
Post by egghead on Sept 23, 2018 5:03:25 GMT
Dear stupid me. I did a State.create instead of a CryptoTest.create Corrected, and now works as expected. Result of staying up late nights Only one question, if encryption key is shipped with app, can't it be cracked
|
|
|
Post by Dmitry Soldatenkov on Sept 23, 2018 11:24:16 GMT
All can be cracked, but we can just increase price for it. If you encrypt bundle then key in ruby code encrypted too. Also key shipped inside native code(for decrypt bundle), but find it not easy.
|
|
|
Post by egghead on Sept 23, 2018 11:45:50 GMT
Ahh, yes. Thanks!
|
|
|
Post by egghead on May 19, 2020 15:03:07 GMT
Call me lazy not to read the docs, but is encrypt_file_extensions still supported in 7.2.0?
|
|
|
Post by Alex Epifanov on May 19, 2020 15:07:49 GMT
Call me lazy not to read the docs, but is encrypt_file_extensions still supported in 7.2.0? Yes, sure.
|
|
|
Post by egghead on Jul 1, 2020 12:11:13 GMT
|
|
|
Post by Dmitry Soldatenkov on Jul 6, 2020 23:51:34 GMT
They provide solution for encrypt/decrypt files. Our bundle encryption solution provide only for bundle files (files in application package - assets - where Rhodes app has compiled ruby files, html, js, css and other files). If you want to encrypt your work files (created by your application's code or downloaded etc.) you can use SSL ruby API or any ruby solutions. If you want to encrypt your data you also can store it in DB and use database encryption (add encrypt_database: 1 to your build.yml) - in this case we will encrypt DB and use autogenerated key stored in system's security storage.
|
|