I have been working on a project to convert a regular MVC application to Web API application. Now the security system isn't done properly and I am wondering what to do. I turn to you all to help me figure it out. The current system uses the following code to create an encrypted password. (Probably not the best way but it is what it is.)
MD5CryptoServiceProvider x = new MD5CryptoServiceProvider();
byte[] data = System.Text.Encoding.ASCII.GetBytes(unHashed);
data = x.ComputeHash(data);
return System.Text.Encoding.ASCII.GetString(data);
Now my question is can a method be created to decrypt the password? I have been playing around with the code and can't quite figure it out. I am not that great with this so I hope someone on here can help me out.
Thanks in advance!