bluebubbles-app icon indicating copy to clipboard operation
bluebubbles-app copied to clipboard

chore: migrate encrypt to cryptography and upgrade objectbox

Open cameronaaron opened this issue 3 weeks ago • 2 comments

Summary

  • Migrate from archived encrypt package to actively maintained cryptography package
  • Upgrade objectbox from 4.0.3 to ^5.0.3

Changes

  • encrypt: ^5.0.3cryptography: ^2.7.0
  • objectbox: 4.0.3objectbox: ^5.0.3
  • Updated crypto functions to async (cryptography package doesn't support sync operations)
  • Added ServerPayload.fromJsonAsync() static factory for encrypted payloads
  • Updated all call sites in action_handler.dart and method_channel_service.dart

Why

The encrypt package is archived and no longer maintained. The cryptography package is actively maintained and provides modern encryption APIs.

Testing

  • flutter analyze: 0 errors (451 pre-existing warnings/infos)
  • flutter pub get: Dependencies resolve cleanly

cameronaaron avatar Dec 06 '25 20:12 cameronaaron

https://github.com/BlueBubblesApp/bluebubbles-app/pull/2959 switches to encrypter_plus and upgrades objectbox

jjoelj avatar Dec 06 '25 20:12 jjoelj

#2959 switches to encrypter_plus and upgrades objectbox

Oh let me know when this is done there is other modernization I was working on that was blocked by the older encryption lib

cameronaaron avatar Dec 06 '25 20:12 cameronaaron