We can use the Encrypt() method and get the encrypted value of the provided text. This is a two-way process, so we can get a decrypted value of encrypted text.
ASP.NET Core also has built-in classes to encrypt and decrypt the given data, with different algorithms. Encryption is a two-way operation, and the provided data can be calculated after it has been encrypted using decryption operations with the same algorithm as the encryption.