Код: Выделить всё
String masterKeyAlias = masterKeyAlias = MasterKeys.getOrCreate(MasterKeys.AES256_GCM_SPEC);
SharedPreferences settings = EncryptedSharedPreferences.create(
"encrypted_preferences",
masterKeyAlias,
myAppContext,
EncryptedSharedPreferences.PrefKeyEncryptionScheme.AES256_SIV,
EncryptedSharedPreferences.PrefValueEncryptionScheme.AES256_GCM
);
com.google.crypto.tink.shaded.protobuf.InvalidProtocolBufferException: Протокол сообщение содержало недопустимый тег (ноль).
MasterKeyAlias имеет значение «androidx_security_master_key».
Проблему вызывают какие-то значения параметров или что-то еще?android
Подробнее здесь: https://stackoverflow.com/questions/738 ... d-an-inval
Мобильная версия