我正在尝试在密钥库/钥匙串中存储加密的sqlcipher数据库密码。
我找到了这个链接 -http://www.howtobuildsoftware.com/index.php/how-do/ZPR/c-android-xamarin-monodroid-sqlcipher-correct-way-to-store-encryption-key-for-sqlcipher-database
但是当我用它打电话时——
DependencyService.Get<IAuth>().CreateStore();
它给了我一个空错误。
我做对了还是哪里出错了?
我应该尝试将 sqlcipher 数据库密码存储在密钥库/钥匙串中吗?
> 如果DependencyService.Get<>
返回null
,请确保在每个实现中分配了DependencyAttribute
。
对于 IAuth
实现,您将在已实现平台代码的每个 iOS 和 Android 程序集中添加以下行:
[assembly: Dependency(typeof(IAuthImplementation))]