hive
                                
                                 hive copied to clipboard
                                
                                    hive copied to clipboard
                            
                            
                            
                        Passing wrong HIveipher to encryptionCipher causes vague error and breaks app
Steps to Reproduce
- Follow these instructions and build an Encrypted box
- Debug on device, leave it for a day or two, recompile and rebuild
- Since no encryption key can be retrieved from emptied secure storage, new key is generated
- "Unknown error" thrown at Hive.openBox, app unable to proceed
Version
- Platform: Android
- Flutter version: 2.0.5
- Hive version: 2.0.4
A more specific error, like "Box cannot open; maybe the cipher is wrong?" would help. Perhaps return some nonsense or a fake Box so that the app does not break before rendering? (although it will still break once any related value is called.)
A wrong encryption key error would be great! Been waiting for this as well