concept encryption in category asp.net

This is an excerpt from Manning's book ASP.NET Core in Action.
The anti-forgery tokens used to prevent CSRF attacks rely on the ability of the framework to use strong symmetric encryption to encrypt and decrypt data. Encryption algorithms typically rely on one or more keys, which are used to initialize the encryption and to make the process reproducible. If you have the key, you can encrypt and decrypt data; without it, the data is secure.
In ASP.NET Core, encryption is handled by the Data Protection APIs. They’re used to create the anti-forgery tokens, to encrypt authentication cookies, and to generate secure tokens in general. Crucially, they also control the management of the key files that are used for encryption.
A key file is a small XML file that contains the random key value used for encryption in ASP.NET Core apps. It’s critical that it’s stored securely—if an attacker got hold of it, they could impersonate any user of your app, and generally do bad things!