Looking for the same equivalent to this method in C#
try { MessageDigest md = MessageDigest.getInstance(\"SHA-1\"); md.update(password.ge
Have a look at Sha1CryptoServiceProvider. It provides a good amount of flexibility. Like most of the algorithms in System.Security.Cryptography, it provides methods for handling byte arrays and streams.