Encrypting the password before string to the database, it’s
more often that if there is plain string there is chances of hack your system
by Hackers. It will be tough for them to
crack it if the password is looking like weird charter symbols.
e.g. If you store the password “test1234” to database and it
will store like;
g+yC22ZOR8iB5gdYvhkZcQ==
Sharing you the simple method which is using the MD5 algorithm to encrypt the
password and any provided string. MD5CryptoServiceProvider class return
the hash as an array of 16 bytes.