C# SHA-256 vs. Java SHA-256. Different results?

前端 未结 5 1682
无人共我
无人共我 2021-02-10 09:16

I want to convert a some code which is in Java to C#.

Java Code:

  private static final byte[] SALT = \"NJui8*&N823bVvy03^4N\".getBytes();

  public         


        
5条回答
  •  独厮守ぢ
    2021-02-10 10:02

    The C# code you link to also uses salt - but the Java code does not. If you use salt with once, but not the other, then the results will be (and should be!) different.

提交回复
热议问题