Reputation: 175
Currently i am doing this in my UWP app
byte[] bytes = new UTF8Encoding().GetBytes(Password);
byte[] hash = ((HashAlgorithm)CryptoConfig.CreateFromName("MD5")).ComputeHash(bytes);
string hashstring = BitConverter.ToString(hash);
I have searched a lot but couldn't find the replacement of CryptoConfig class in .NETCore.
Upvotes: 1
Views: 815