SHA1 C# equivalent of this Java

后端 未结 2 1657
谎友^
谎友^ 2021-01-03 09:53

Looking for the same equivalent to this method in C#

try {
          MessageDigest md = MessageDigest.getInstance(\"SHA-1\");
          md.update(password.ge         


        
2条回答
  •  自闭症患者
    2021-01-03 10:10

    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.

提交回复
热议问题