We can use the CalculateHash() method and get a hashed value of the provided text. This is a one-way process, so we can't get the provided text after hashing it.
ASP.NET Core has built-in classes to hash the given data for different algorithms. Hashing is a one-way operation, and the given data cannot be retrived after it has been hashed.