How it works...

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.

Get ASP.NET Core MVC 2.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.