У меня есть некоторые данные, которые я хочу зашифровать в приложении ASP.NET MVC, чтобы помешать им подделывать его. Я могу использовать классы криптографии для фактического шифрования/дешифрования, без проблем. Основная проблема заключается в том, чтобы выяснить, где хранить ключ шифрования и управлять его изменениями.
Так как ASP.NET уже поддерживает machineKey для разных вещей (шифрование ViewData и т.д.), мне было интересно, есть ли какие-либо функции ASP.NET, которые позволяют мне шифровать/расшифровывать мои собственные данные с помощью machineKey? Таким образом, мне не пришлось бы разрабатывать собственную систему управления ключами.